bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ACL module fails on MacOS X


From: Paolo Bonzini
Subject: ACL module fails on MacOS X
Date: Mon, 05 Feb 2007 17:01:01 +0100
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

The sys/acl.h file on MacOS X needs sys/types.h included before it.

This patch would fix it, ok to apply?

Paolo

2007-02-05  Paolo Bonzini  <address@hidden>

        * lib/acl.h: Include sys/types.h before sys/acl.h.

Index: acl.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/acl.h,v
retrieving revision 1.4
diff -u -r1.4 acl.h
--- acl.h       29 Dec 2006 19:33:46 -0000      1.4
+++ acl.h       5 Feb 2007 15:59:37 -0000
@@ -18,6 +18,8 @@

    Written by Paul Eggert.  */

+#include <sys/types.h>
+
 #if HAVE_SYS_ACL_H
 # include <sys/acl.h>
 #endif
@@ -25,7 +27,6 @@
 # define GETACLCNT ACL_CNT
 #endif

-#include <sys/types.h>
 #include <sys/stat.h>

 int file_has_acl (char const *, struct stat const *);

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]