On HP-UX 11, the ACL tests fail to compile:

  cc: "test-sameacls.c", line 389: error 1594: The sizeof operator cannot be 
applied to types with unknown size.

This fixes it.


2011-06-09  Bruno Haible  <br...@clisp.org>

        acl tests: Fix compilation error on HP-UX 11.
        * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.

--- tests/test-sameacls.c.orig  Thu Jun  9 11:32:06 2011
+++ tests/test-sameacls.c       Wed Jun  8 21:55:32 2011
@@ -24,7 +24,7 @@
 #include <string.h>
 #include <sys/stat.h>
 
-#if HAVE_ACL_GET_FILE || HAVE_FACL || HAVE_ACLX_GET || HAVE_STATACL || 
HAVE_ACLSORT
+#if HAVE_ACL_GET_FILE || HAVE_FACL || HAVE_GETACL || HAVE_ACLX_GET || 
HAVE_STATACL || HAVE_ACLSORT
 # include <sys/types.h>
 # include <sys/acl.h>
 #endif

-- 
In memoriam Johanna Kirchner <http://en.wikipedia.org/wiki/Johanna_Kirchner>

Reply via email to