# HG changeset patch # User Paul Eggert # Date 1160422434 0 # Node ID e73dc893377995d8545e70dab9a9479813e84823 # Parent fcfa86784f9e2403c6ac9db88d3ead8b1ba5db7e * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too, for NetBSD. Problem reported by Bruno Haible. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-09 Paul Eggert + + * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too, + for NetBSD. Problem reported by Bruno Haible. + 2006-10-09 Jim Meyering * lib/lchown.c: Include before "stat-macros.h". diff --git a/lib/filemode.h b/lib/filemode.h --- a/lib/filemode.h +++ b/lib/filemode.h @@ -22,7 +22,8 @@ # include # if HAVE_DECL_STRMODE -# include +# include /* FreeBSD, OpenBSD */ +# include /* NetBSD */ # else void strmode (mode_t mode, char *str); # endif