From: Collin Funk Date: Wed, 12 Feb 2025 02:44:33 +0000 (-0800) Subject: acl-permissions, file-has-acl: Depend on stdint-h for SIZE_MAX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1a7af9bc8ebc9bbe9fb8d62664103810a76ba10;p=thirdparty%2Fgnulib.git acl-permissions, file-has-acl: Depend on stdint-h for SIZE_MAX. * lib/acl-internal.h: Include stdint.h. (SIZE_MAX): Remove definition. * lib/file-has-acl.c: Don't include stdint.h again. * modules/acl-permissions (Depends-on): Add stdint-h. * modules/file-has-acl (Depends-on): Likewise. --- diff --git a/ChangeLog b/ChangeLog index dabace1a4b..1ad2f6ed5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2025-02-11 Collin Funk + + acl-permissions, file-has-acl: Depend on stdint-h for SIZE_MAX. + * lib/acl-internal.h: Include stdint.h. + (SIZE_MAX): Remove definition. + * lib/file-has-acl.c: Don't include stdint.h again. + * modules/acl-permissions (Depends-on): Add stdint-h. + * modules/file-has-acl (Depends-on): Likewise. + 2025-02-10 KO Myung-Hun popen: Set gl_cv_func_popen_works to "guessing no" on OS/2. diff --git a/lib/acl-internal.h b/lib/acl-internal.h index f37b3bcff5..b32a1cdafd 100644 --- a/lib/acl-internal.h +++ b/lib/acl-internal.h @@ -52,10 +52,7 @@ extern int aclsort (int, int, struct acl *); #include #include - -#ifndef SIZE_MAX -# define SIZE_MAX ((size_t) -1) -#endif +#include #ifndef HAVE_FCHMOD # define HAVE_FCHMOD false diff --git a/lib/file-has-acl.c b/lib/file-has-acl.c index c02cfee842..179e805bd4 100644 --- a/lib/file-has-acl.c +++ b/lib/file-has-acl.c @@ -50,7 +50,6 @@ static char const UNKNOWN_SECURITY_CONTEXT[] = "?"; # include # endif # include -# include # include # include # include diff --git a/modules/acl-permissions b/modules/acl-permissions index 6b9f791978..bcd1fc5e40 100644 --- a/modules/acl-permissions +++ b/modules/acl-permissions @@ -18,6 +18,7 @@ minmax stat bool sys_stat-h +stdint-h configure.ac: gl_FUNC_ACL diff --git a/modules/file-has-acl b/modules/file-has-acl index 2105483f6d..aefd786247 100644 --- a/modules/file-has-acl +++ b/modules/file-has-acl @@ -17,6 +17,7 @@ extern-inline minmax free-posix limits-h +stdint-h malloc-posix ssize_t stat