From: Vadim Zeitlin Date: Wed, 9 Feb 2000 17:53:42 +0000 (+0000) Subject: some Motif compilation fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/26dfedc4fc2abcec898e2911b5bfd4556a81e69e?ds=sidebyside;hp=06b466c74fae8f27544f143abdcabcd2385602e4 some Motif compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 */