From: Collin Funk Date: Sun, 21 Sep 2025 05:36:22 +0000 (-0700) Subject: lchmod: Port to Android API level 36. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bdd70e3cfa030ac5e3a46ed8c22fb44eb144b36;p=thirdparty%2Fgnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 3b4dbeb8ae..348009ed5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2025-09-20 Collin Funk + + 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 pthread-once: Reduce link dependencies. diff --git a/doc/glibc-functions/lchmod.texi b/doc/glibc-functions/lchmod.texi index 35b70f83dc..83f8a192f1 100644 --- a/doc/glibc-functions/lchmod.texi +++ b/doc/glibc-functions/lchmod.texi @@ -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. diff --git a/m4/lchmod.m4 b/m4/lchmod.m4 index fd76834347..601d1d3da4 100644 --- a/m4/lchmod.m4 +++ b/m4/lchmod.m4 @@ -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 to declare lchmod(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - AC_CHECK_FUNCS_ONCE([lchmod]) + gl_CHECK_FUNCS_ANDROID([lchmod], [[#include ]]) if test "$ac_cv_func_lchmod" = no; then HAVE_LCHMOD=0 fi diff --git a/m4/lchown.m4 b/m4/lchown.m4 index 72479bde0e..d2420b19d2 100644 --- a/m4/lchown.m4 +++ b/m4/lchown.m4 @@ -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 ]]) AC_CHECK_FUNCS([lchown]) if test $ac_cv_func_lchown = no; then HAVE_LCHOWN=0