From: Vadim Zeitlin Date: Fri, 30 Jul 1999 18:03:23 +0000 (+0000) Subject: link fix for no sockets compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3646fd68cb4fcf3242e8c6ba87bf99f409777032 link fix for no sockets compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 */