]> git.saurik.com Git - wxWidgets.git/commitdiff
SN: Added suitable includes for EMX (#ifdef'ed __EMX__),
authorStefan Neis <Stefan.Neis@t-online.de>
Fri, 14 Jan 2000 22:30:03 +0000 (22:30 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Fri, 14 Jan 2000 22:30:03 +0000 (22:30 +0000)
        removed include to wx/defs.h (seems to be unnecessary and
        gcc chokes on C files containing C++ features (such as 'class')

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/gsocket.c

index 0ea14036b81d920ba78b201778abd4165fd95857..dadf5ae88676a159cd5ef8a8d0c3e72c80016562 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #include "wx/setup.h"
-#include "wx/defs.h"
 
 #if wxUSE_SOCKETS
 
 
 #include <assert.h>
 #include <sys\types.h>
+#ifdef __EMX__
+#include <sys/time.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+#include <errno.h>
+#define HAVE_INET_ADDR
+#else
 #include <utils.h>
 #include <sys\time.h>
 #include <in.h>
 #include <netdb.h>
 #include <nerrno.h>
+#endif
 #if defined(__VISAGECPP__) && __IBMCPP__ < 400
 #include <socket.h>
 #include <ioctl.h>
@@ -28,6 +36,7 @@
 #include <sys\socket.h>
 #include <sys\ioctl.h>
 #include <sys\select.h>
+#ifndef __EMX__
 #define select(a,b,c,d,e) bsdselect(a,b,c,d,e)
 int _System bsdselect(int,
                       struct fd_set *,
@@ -36,6 +45,7 @@ int _System bsdselect(int,
                       struct timeval *);
 int _System soclose(int);
 #endif
+#endif
 
 #include <string.h>
 #include <stdio.h>