summaryrefslogtreecommitdiff
path: root/lib/acl.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-12-29 19:33:46 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-12-29 19:33:46 +0000
commitc1c022da45f67cf61e9993a08b5a80a6f30578bb (patch)
treeeb648afb297b11bdcff1081e67e068e26d95a44a /lib/acl.h
parentdf6e14c307f2a7ca93c3827f973985669f853b42 (diff)
downloadgnulib-c1c022da45f67cf61e9993a08b5a80a6f30578bb.tar.gz
* 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.
Diffstat (limited to 'lib/acl.h')
-rw-r--r--lib/acl.h3
1 files changed, 3 insertions, 0 deletions
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 <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);