Mercurial > gnulib
changeset 27154:a766f9c1ded3
* lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
for NetBSD. Problem reported by Bruno Haible.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 09 Oct 2006 19:33:54 +0000 |
parents | 025aac8d9ebe |
children | f5402aa19941 |
files | ChangeLog lib/filemode.h |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Oct 09 18:22:37 2006 +0000 +++ b/ChangeLog Mon Oct 09 19:33:54 2006 +0000 @@ -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".
--- a/lib/filemode.h Mon Oct 09 18:22:37 2006 +0000 +++ b/lib/filemode.h Mon Oct 09 19:33:54 2006 +0000 @@ -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