for NetBSD. Problem reported by Bruno Haible.
+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".
# 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