+2008-01-17 Simon Josefsson <simon@josefsson.org>
+
+ * lib/gethostname.c: Include string.h unconditionally, strncpy is
+ used by the UNAME case. Reported by Bruno Haible
+ <bruno@clisp.org>.
+
2008-01-17 Eric Blake <ebb9@byu.net>
Convert c-strcasestr to be more efficient.
#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. */