]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
lchmod: Port to Android API level 36.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 21 Sep 2025 05:36:22 +0000 (22:36 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 21 Sep 2025 05:36:22 +0000 (22:36 -0700)
* m4/lchmod.m4 (gl_FUNC_LCHMOD): Use gl_CHECK_FUNCS_ANDROID to check for
lchmod instead of AC_CHECK_FUNCS_ONCE.
* m4/lchown.m4 (gl_FUNC_LCHOWN): Likewise.
* doc/glibc-functions/lchmod.texi (lchmod): Document that the function
is missing on Android API 35 and lower.

ChangeLog
doc/glibc-functions/lchmod.texi
m4/lchmod.m4
m4/lchown.m4

index 3b4dbeb8aebb485845a5d7f3861f03291064928e..348009ed5a5cd55e5c7a1f5361670bd07de890d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-09-20  Collin Funk  <collin.funk1@gmail.com>
+
+       lchmod: Port to Android API level 36.
+       * m4/lchmod.m4 (gl_FUNC_LCHMOD): Use gl_CHECK_FUNCS_ANDROID to check for
+       lchmod instead of AC_CHECK_FUNCS_ONCE.
+       * m4/lchown.m4 (gl_FUNC_LCHOWN): Likewise.
+       * doc/glibc-functions/lchmod.texi (lchmod): Document that the function
+       is missing on Android API 35 and lower.
+
 2025-09-20  Bruno Haible  <bruno@clisp.org>
 
        pthread-once: Reduce link dependencies.
index 35b70f83dc9e2d84e3cc59a08ccbf5db97084d37..83f8a192f183fcfcd0fa5fd2280a6c87cc83251d 100644 (file)
@@ -9,7 +9,7 @@ Portability problems fixed by Gnulib:
 @itemize
 @item
 This function is missing on some platforms:
-OpenBSD 7.5, Minix 3.1.8, AIX 5.1, Solaris 11.4, Cygwin 2.9, mingw, MSVC 14, Android 9.0.
+OpenBSD 7.5, Minix 3.1.8, AIX 5.1, Solaris 11.4, Cygwin 2.9, mingw, MSVC 14, Android API level 35.
 @item
 This function is not declared on some platforms:
 HP-UX 11.31.
index fd768343472fcd859f85bd6d787ffd8000632f03..601d1d3da4fb8e9a5145f498fb917cf86a96c892 100644 (file)
@@ -1,5 +1,5 @@
 # lchmod.m4
-# serial 10
+# serial 11
 dnl Copyright (C) 2005-2006, 2008-2025 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,7 @@ AC_DEFUN([gl_FUNC_LCHMOD],
   dnl Persuade glibc <sys/stat.h> to declare lchmod().
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
-  AC_CHECK_FUNCS_ONCE([lchmod])
+  gl_CHECK_FUNCS_ANDROID([lchmod], [[#include <sys/stat.h>]])
   if test "$ac_cv_func_lchmod" = no; then
     HAVE_LCHMOD=0
   fi
index 72479bde0e6868d375c65d8810b60d04fe69f6fe..d2420b19d2c43c7062f57871f5f010e75900f5eb 100644 (file)
@@ -1,5 +1,5 @@
 # lchown.m4
-# serial 17
+# serial 18
 dnl Copyright (C) 1998, 2001, 2003-2007, 2009-2025 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_LCHOWN],
 [
   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
   AC_REQUIRE([gl_FUNC_CHOWN])
-  AC_CHECK_FUNCS_ONCE([lchmod])
+  gl_CHECK_FUNCS_ANDROID([lchmod], [[#include <sys/stat.h>]])
   AC_CHECK_FUNCS([lchown])
   if test $ac_cv_func_lchown = no; then
     HAVE_LCHOWN=0