The functions rpl_acl_get_fd, rpl_acl_set_fd are part of the 'acl-internal' module, since they are declared in acl-internal.h. Their definition should be in the same module. Currently they are in qset-acl.c, which makes no sense, because it is possible to use the 'acl-internal' module without the 'qset-acl' module.
2024-11-11 Bruno Haible <br...@clisp.org> acl-permissions: Define the inline functions in this module. * lib/acl-internal.c (ACL_INTERNAL_INLINE): Define here. * lib/qset-acl.c (ACL_INTERNAL_INLINE): Don't define here. diff --git a/lib/acl-internal.c b/lib/acl-internal.c index ae5398306a..b729126118 100644 --- a/lib/acl-internal.c +++ b/lib/acl-internal.c @@ -19,10 +19,12 @@ #include <config.h> -#include "acl.h" - +/* Specification. */ +#define ACL_INTERNAL_INLINE _GL_EXTERN_INLINE #include "acl-internal.h" +#include "acl.h" + #if defined __CYGWIN__ # include <sys/types.h> # include <grp.h> diff --git a/lib/qset-acl.c b/lib/qset-acl.c index 7318b553c8..9a3ce48ff9 100644 --- a/lib/qset-acl.c +++ b/lib/qset-acl.c @@ -19,10 +19,10 @@ #include <config.h> -#define ACL_INTERNAL_INLINE _GL_EXTERN_INLINE +/* Specification. */ +#include "acl.h" #include <string.h> -#include "acl.h" #include "acl-internal.h"