]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
file-has-acl: Fix compilation error on Solaris (regression 2025-05-09).
authorBruno Haible <bruno@clisp.org>
Mon, 12 May 2025 12:11:02 +0000 (14:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 May 2025 12:11:02 +0000 (14:11 +0200)
* lib/file-has-acl.c (acl_get_fdfile): Don't define on platforms that
don't need it.

ChangeLog
lib/file-has-acl.c

index 74453491ae3a46488f5c52647b9da40ec61667cc..85028d3684cd784f614df9b9a647f395e3f0596b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-12  Bruno Haible  <bruno@clisp.org>
+
+       file-has-acl: Fix compilation error on Solaris (regression 2025-05-09).
+       * lib/file-has-acl.c (acl_get_fdfile): Don't define on platforms that
+       don't need it.
+
 2025-05-12  Bruno Haible  <bruno@clisp.org>
 
        doc: Update doc about ACLs on Cygwin.
index a356ee0d0b228bdbde4da5ae8620813a06fc14a7..a9cfbf3a16e67e3cff29932692af3af70f8d5794 100644 (file)
@@ -382,10 +382,11 @@ acl_nfs4_nontrivial (uint32_t *xattr, ssize_t nbytes)
 }
 #endif
 
-#if (!USE_LINUX_XATTR && USE_ACL && !HAVE_ACL_EXTENDED_FILE \
-     && !HAVE_ACL_TYPE_EXTENDED)
+#if (!USE_LINUX_XATTR && USE_ACL && HAVE_ACL_GET_FILE \
+     && !HAVE_ACL_EXTENDED_FILE && !HAVE_ACL_TYPE_EXTENDED)
+/* FreeBSD, NetBSD >= 10, IRIX, Tru64, Cygwin >= 2.5 */
 
-# if HAVE_ACL_GET_FD && !HAVE_ACL_GET_LINK_NP
+# if HAVE_ACL_GET_FD && !HAVE_ACL_GET_LINK_NP /* IRIX, Tru64, Cygwin >= 2.5 */
 #  include <fcntl.h>
 #  ifdef O_PATH
 #   define acl_get_fd_np(fd, type) acl_get_fd (fd)