* lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Oct 2006 19:33:54 +0000 (19:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 9 Oct 2006 19:33:54 +0000 (19:33 +0000)
for NetBSD.  Problem reported by Bruno Haible.

ChangeLog
lib/filemode.h

index 32baef9..bdbd7b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
+       for NetBSD.  Problem reported by Bruno Haible.
+
 2006-10-09  Jim Meyering  <jim@meyering.net>
 
        * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
index 4716736..f71d994 100644 (file)
@@ -22,7 +22,8 @@
 # include <sys/stat.h>
 
 # if HAVE_DECL_STRMODE
-#  include <string.h>
+#  include <string.h> /* FreeBSD, OpenBSD */
+#  include <unistd.h> /* NetBSD */
 # else
 void strmode (mode_t mode, char *str);
 # endif