From: Paul Eggert Date: Fri, 29 Dec 2006 19:33:46 +0000 (+0000) Subject: * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and X-Git-Tag: cvs-readonly~1454 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=c1c022da45f67cf61e9993a08b5a80a6f30578bb;p=gnulib.git * 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 index 5e56c758b..b5b09067b 100644 --- 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 index 803be0da8..0b3cd6f1d 100644 --- 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 index a7b4f9eec..11f2667e7 100644 --- 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);