From c1c022da45f67cf61e9993a08b5a80a6f30578bb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 29 Dec 2006 19:33:46 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ lib/acl.c | 5 ++--- lib/acl.h | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e56c758bc..b5b09067b9 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 803be0da87..0b3cd6f1d9 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 a7b4f9eecb..11f2667e7b 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); -- 2.30.2