+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.
}
#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)