From 3646fd68cb4fcf3242e8c6ba87bf99f409777032 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 30 Jul 1999 18:03:23 +0000 Subject: [PATCH] link fix for no sockets compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/gsockgtk.c | 6 ++++++ src/gtk1/gsockgtk.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index f31333439f..e462a6aece 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -5,6 +5,10 @@ * CVSID: $Id$ * ------------------------------------------------------------------------- */ +#include "wx/setup.h" + +#if wxUSE_SOCKETS + #include #include #include @@ -105,3 +109,5 @@ unsigned long GSocket_GetEventID(GSocket *socket) void GSocket_DoEvent(unsigned long evt_id) { } + +#endif /* wxUSE_SOCKETS */ diff --git a/src/gtk1/gsockgtk.c b/src/gtk1/gsockgtk.c index f31333439f..e462a6aece 100644 --- a/src/gtk1/gsockgtk.c +++ b/src/gtk1/gsockgtk.c @@ -5,6 +5,10 @@ * CVSID: $Id$ * ------------------------------------------------------------------------- */ +#include "wx/setup.h" + +#if wxUSE_SOCKETS + #include #include #include @@ -105,3 +109,5 @@ unsigned long GSocket_GetEventID(GSocket *socket) void GSocket_DoEvent(unsigned long evt_id) { } + +#endif /* wxUSE_SOCKETS */ -- 2.47.2