aboutsummaryrefslogtreecommitdiff
path: root/src/netdist.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-03-03 20:39:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-03-03 20:39:47 +0000
commit7a64609c793d1ab2a1512adc353acc10f3eaa87a (patch)
tree0b80e2709e255410b0283f73342d1d67f740528b /src/netdist.c
parent80929a20e07d36abe421ea4cc3bdad760ccb89fa (diff)
added UNIX and unix defines
svn path=/trunk/externals/maxlib/; revision=451
Diffstat (limited to 'src/netdist.c')
-rw-r--r--src/netdist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netdist.c b/src/netdist.c
index 4f91c2d..12a2e9d 100644
--- a/src/netdist.c
+++ b/src/netdist.c
@@ -29,7 +29,7 @@
#include <sys/types.h>
#include <string.h>
#include <pthread.h>
-#ifdef UNIX
+#if defined(UNIX) || defined(unix)
#include <sys/socket.h>
#include <sys/errno.h>
#include <netinet/in.h>
@@ -67,7 +67,7 @@ static void sys_sockerror(char *s)
int err = WSAGetLastError();
if (err == 10054) return;
#endif
-#ifdef UNIX
+#if defined(UNIX) || defined(unix)
int err = errno;
#endif
post("%s: %s (%d)\n", s, strerror(err), err);
@@ -75,7 +75,7 @@ static void sys_sockerror(char *s)
static void sys_closesocket(int fd) {
-#ifdef UNIX
+#if defined(UNIX) || defined(unix)
close(fd);
#endif
#ifdef NT