X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Facl-internal.h;h=d74a66d9a24efaa0945c6c2362aaf8816a32ef82;hb=dd6ceef65e424d30db8706273f88c20b015012ce;hp=c37a7c19e713457e4ca19fec01c32d69d1a59121;hpb=e37fe028c558a3d0a80b347b745e162f549ea295;p=gnulib.git diff --git a/lib/acl-internal.h b/lib/acl-internal.h index c37a7c19e..d74a66d9a 100644 --- a/lib/acl-internal.h +++ b/lib/acl-internal.h @@ -18,8 +18,6 @@ Written by Paul Eggert and Andreas Gruenbacher. */ -#include - #include "acl.h" #include @@ -40,12 +38,8 @@ # define ENOTSUP (-1) #endif -#if ENABLE_NLS -# include -# define _(Text) gettext (Text) -#else -# define _(Text) Text -#endif +#include "gettext.h" +#define _(msgid) gettext (msgid) #ifndef HAVE_FCHMOD # define HAVE_FCHMOD false @@ -59,12 +53,14 @@ /* POSIX 1003.1e (draft 17) */ #ifndef HAVE_ACL_GET_FD # define HAVE_ACL_GET_FD false +# undef acl_get_fd # define acl_get_fd(fd) (NULL) #endif /* POSIX 1003.1e (draft 17) */ #ifndef HAVE_ACL_SET_FD # define HAVE_ACL_SET_FD false +# undef acl_set_fd # define acl_set_fd(fd, acl) (-1) #endif @@ -80,8 +76,8 @@ # define acl_from_mode(mode) (NULL) #endif -#define ACL_NOT_WELL_SUPPORTED(Errno) \ - (Errno == ENOTSUP || Errno == ENOSYS || Errno == EINVAL) +#define ACL_NOT_WELL_SUPPORTED(Err) \ + ((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY) /* Define a replacement for acl_entries if needed. */ #if USE_ACL && HAVE_ACL_GET_FILE && HAVE_ACL_FREE && !HAVE_ACL_ENTRIES