]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
acl-permissions, file-has-acl: Depend on stdint-h for SIZE_MAX.
authorCollin Funk <collin.funk1@gmail.com>
Wed, 12 Feb 2025 02:44:33 +0000 (18:44 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 12 Feb 2025 02:44:33 +0000 (18:44 -0800)
* 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.

ChangeLog
lib/acl-internal.h
lib/file-has-acl.c
modules/acl-permissions
modules/file-has-acl

index dabace1a4ba60c38bf425f20129df69c277a05bc..1ad2f6ed5b91ad878e0f177dff39575f834269fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-02-11  Collin Funk  <collin.funk1@gmail.com>
+
+       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  <komh78@gmail.com>
 
        popen: Set gl_cv_func_popen_works to "guessing no" on OS/2.
index f37b3bcff5bbbfe39c041bd314a177f244553f8d..b32a1cdafd91a269625713f8d34410a4296cb964 100644 (file)
@@ -52,10 +52,7 @@ extern int aclsort (int, int, struct acl *);
 #include <errno.h>
 
 #include <limits.h>
-
-#ifndef SIZE_MAX
-# define SIZE_MAX ((size_t) -1)
-#endif
+#include <stdint.h>
 
 #ifndef HAVE_FCHMOD
 # define HAVE_FCHMOD false
index c02cfee842bf5f7f847d641d28a4081b4e0f1aa3..179e805bd48824fe471661d2bf65c12943af7239 100644 (file)
@@ -50,7 +50,6 @@ static char const UNKNOWN_SECURITY_CONTEXT[] = "?";
 #  include <selinux/selinux.h>
 # endif
 # include <stdckdint.h>
-# include <stdint.h>
 # include <string.h>
 # include <arpa/inet.h>
 # include <sys/xattr.h>
index 6b9f7919783fe38d2e36295ddc3c6355ca5d0796..bcd1fc5e40e597eb167ef7d5f674f63a90ce163f 100644 (file)
@@ -18,6 +18,7 @@ minmax
 stat
 bool
 sys_stat-h
+stdint-h
 
 configure.ac:
 gl_FUNC_ACL
index 2105483f6d5e0d2086ccd8ff3decf7a8cb47b3d4..aefd7862471c2c826fc857d5989fd8c6cf52eac1 100644 (file)
@@ -17,6 +17,7 @@ extern-inline
 minmax
 free-posix
 limits-h
+stdint-h
 malloc-posix
 ssize_t
 stat