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-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
#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
# include <acl/libacl.h>
#endif
-#include "acl.h"
#include "error.h"
#include "quote.h"
# 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);