diff liboctave/lo-cutils.c @ 4093:5a82e874999b

[project @ 2002-10-08 23:48:45 by jwe]
author jwe
date Tue, 08 Oct 2002 23:48:46 +0000
parents 63c75bc3db82
children 73431774c0b7
line wrap: on
line diff
--- a/liboctave/lo-cutils.c
+++ b/liboctave/lo-cutils.c
@@ -56,7 +56,11 @@
   return (char *) strptime (buf, format, tm);
 }
 
-#if ! defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H)
+#if defined (__WIN32__) && ! defined (_POSIX_VERSION)
+
+#include <winsock.h>
+
+#elif ! defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H)
 
 #include <sys/utsname.h>