* lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Dec 2006 19:33:46 +0000 (19:33 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 Dec 2006 19:33:46 +0000 (19:33 +0000)
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
lib/acl.c
lib/acl.h

index 5e56c75..b5b0906 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * 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  <eggert@cs.ucla.edu>
 
        Import the following change from libc; problem reported by
index 803be0d..0b3cd6f 100644 (file)
--- a/lib/acl.c
+++ b/lib/acl.c
 
 #include <config.h>
 
+#include "acl.h"
+
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #ifndef S_ISLNK
 # define S_ISLNK(Mode) 0
 #endif
@@ -33,7 +33,6 @@
 # include <acl/libacl.h>
 #endif
 
-#include "acl.h"
 #include "error.h"
 #include "quote.h"
 
index a7b4f9e..11f2667 100644 (file)
--- a/lib/acl.h
+++ b/lib/acl.h
@@ -25,6 +25,9 @@
 # define GETACLCNT ACL_CNT
 #endif
 
+#include <sys/types.h>
+#include <sys/stat.h>
+
 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);