summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/gethostname.c')
-rw-r--r--otherlibs/unix/gethostname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/otherlibs/unix/gethostname.c b/otherlibs/unix/gethostname.c
index 1513bfaba..a85346d22 100644
--- a/otherlibs/unix/gethostname.c
+++ b/otherlibs/unix/gethostname.c
@@ -14,10 +14,10 @@
#include <mlvalues.h>
#include <alloc.h>
-#ifndef _WIN32
-#include <sys/param.h>
-#else
+#if defined (_WIN32)
#include <winsock.h>
+#elsif !macintosh
+#include <sys/param.h>
#endif
#include "unixsupport.h"