#if wxUSE_SOCKETS
-#define BSD_SELECT // use Berkley Sockets select
+#define BSD_SELECT /* use Berkley Sockets select */
#include <assert.h>
-#include <ioctl.h>
#include <sys\types.h>
-#include <socket.h>
#include <utils.h>
#include <sys\time.h>
#include <in.h>
#include <netdb.h>
#include <nerrno.h>
+#if defined(__VISAGECPP__) && __IBMCPP__ < 400
+#include <socket.h>
+#include <ioctl.h>
#include <select.h>
+#else
+#include <sys\socket.h>
+#include <sys\ioctl.h>
+#include <sys\select.h>
+#define select(a,b,c,d,e) bsdselect(a,b,c,d,e)
+int _System bsdselect(int,
+ struct fd_set *,
+ struct fd_set *,
+ struct fd_set *,
+ struct timeval *);
+int _System soclose(int);
+#endif
#include <string.h>
#include <stdio.h>