Improve Tru64 support.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Jun 2008 10:58:54 +0000 (12:58 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Jun 2008 10:58:54 +0000 (12:58 +0200)
ChangeLog
lib/acl-internal.h

index 3398391..e71b87d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-06-02  Bruno Haible  <bruno@clisp.org>
 
+       * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
+       it exists.
+
+2008-06-02  Bruno Haible  <bruno@clisp.org>
+
        * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
        * lib/copy-acl.c (qcopy_acl): Update comment.
 
index 8c8156d..478fafc 100644 (file)
@@ -131,6 +131,9 @@ rpl_acl_set_fd (int fd, acl_t acl)
 #  if defined __APPLE__ && defined __MACH__ /* MacOS X */
 #   define ACL_NOT_WELL_SUPPORTED(Err) \
      ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == ENOENT)
+#  elif defined EOPNOTSUPP /* Tru64 NFS */
+#   define ACL_NOT_WELL_SUPPORTED(Err) \
+     ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == EOPNOTSUPP)
 #  else
 #   define ACL_NOT_WELL_SUPPORTED(Err) \
      ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY)