# HG changeset patch # User Paul Eggert # Date 1167420826 0 # Node ID 13e3660ac911655120cdd442607e1d39fd5bae96 # Parent e75fbbb13ac0a146649b7a54bd1698631fbcb67d * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and struct stat. Problem reported by Henning Nielsen Lund. * lib/acl.c: Include acl.h first, to check interface. Don't bother to include sys/types.h and sys/stat.h again. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-29 Paul Eggert + + * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and + struct stat. Problem reported by Henning Nielsen Lund. + * lib/acl.c: Include acl.h first, to check interface. Don't + bother to include sys/types.h and sys/stat.h again. + 2006-12-28 Paul Eggert Import the following change from libc; problem reported by diff --git a/lib/acl.c b/lib/acl.c --- a/lib/acl.c +++ b/lib/acl.c @@ -20,11 +20,11 @@ #include +#include "acl.h" + #include #include #include -#include -#include #ifndef S_ISLNK # define S_ISLNK(Mode) 0 #endif @@ -33,7 +33,6 @@ # include #endif -#include "acl.h" #include "error.h" #include "quote.h" diff --git a/lib/acl.h b/lib/acl.h --- a/lib/acl.h +++ b/lib/acl.h @@ -25,6 +25,9 @@ # define GETACLCNT ACL_CNT #endif +#include +#include + int file_has_acl (char const *, struct stat const *); int copy_acl (char const *, int, char const *, int, mode_t); int set_acl (char const *, int, mode_t);