From 26dfedc4fc2abcec898e2911b5bfd4556a81e69e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Feb 2000 17:53:42 +0000 Subject: [PATCH] some Motif compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/sckipc.h | 6 +++++- src/motif/gsockmot.c | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/wx/sckipc.h b/include/wx/sckipc.h index 9536891b38..c88d5fd19c 100644 --- a/include/wx/sckipc.h +++ b/include/wx/sckipc.h @@ -20,7 +20,9 @@ #endif #include "wx/defs.h" -#include "wx/setup.h" + +#if wxUSE_SOCKETS + #include "wx/ipcbase.h" #include "wx/socket.h" #include "wx/sckstrm.h" @@ -136,4 +138,6 @@ public: virtual wxConnectionBase *OnMakeConnection(); }; +#endif // wxUSE_SOCKETS + #endif // ipcsock.h diff --git a/src/motif/gsockmot.c b/src/motif/gsockmot.c index 797c3cff7b..0898bd4512 100644 --- a/src/motif/gsockmot.c +++ b/src/motif/gsockmot.c @@ -117,4 +117,9 @@ void _GSocket_Disable_Events(GSocket *socket) _GSocket_Uninstall_Callback(socket, GSOCK_OUTPUT); } -#endif /* wxUSE_SOCKETS */ +#else /* !wxUSE_SOCKETS */ + +/* some compilers don't like having empty source files */ +static int wxDummyGsockVar = 0; + +#endif /* wxUSE_SOCKETS/!wxUSE_SOCKETS */ -- 2.45.2