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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/otherlibs/unix/gethostname.c b/otherlibs/unix/gethostname.c
index 777076bf2..f84f8f5b5 100644
--- a/otherlibs/unix/gethostname.c
+++ b/otherlibs/unix/gethostname.c
@@ -15,9 +15,10 @@
#include <mlvalues.h>
#include <alloc.h>
+#include <fail.h>
#if defined (_WIN32)
#include <winsock.h>
-#elif !macintosh
+#else
#include <sys/param.h>
#endif
#include "unixsupport.h"