New module 'unicase/ulc-casecoll'.
[pspp] / lib / gethostname.c
index de3d9a527f4be18ce2ac07f0f863c74b9c3d13f4..acff351d8717f4e0f59bdd41f1bab217e237832e 100644 (file)
 
 #include <config.h>
 
+/* Specification.  */
+#include <unistd.h>
+
 #ifdef HAVE_UNAME
 # include <sys/utsname.h>
-#else
-# include <string.h>
 #endif
 
+#include <string.h>
+
 /* Put up to LEN chars of the host name into NAME.
    Null terminate it if the name is shorter than LEN.
    Return 0 if ok, -1 if error.  */