]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 34.
authorBruno Haible <bruno@clisp.org>
Thu, 25 Jan 2024 23:18:52 +0000 (00:18 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 25 Jan 2024 23:18:52 +0000 (00:18 +0100)
* m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test for
posix_spawn_file_actions_addchdir_np and
posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS_ONCE.
* m4/posix_spawn_faction_addchdir.m4
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR): Test for
posix_spawn_file_actions_addchdir_np using gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS_ONCE.
* m4/posix_spawn_faction_addfchdir.m4
(gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR): Test for
posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS_ONCE.
* doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
the Android API levels.
* doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
Likewise.

ChangeLog
doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi
doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi
m4/posix_spawn.m4
m4/posix_spawn_faction_addchdir.m4
m4/posix_spawn_faction_addfchdir.m4

index c46cb60b3129dfd868a51562bf16cfa9636abc97..7dbf07fe1c541231c98a56971b00d1a88e3711e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,23 @@
 
        Resolve conflicts for functions introduced in Android API level 34.
 
+       * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test for
+       posix_spawn_file_actions_addchdir_np and
+       posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
+       instead of AC_CHECK_FUNCS_ONCE.
+       * m4/posix_spawn_faction_addchdir.m4
+       (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR): Test for
+       posix_spawn_file_actions_addchdir_np using gl_CHECK_FUNCS_ANDROID
+       instead of AC_CHECK_FUNCS_ONCE.
+       * m4/posix_spawn_faction_addfchdir.m4
+       (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR): Test for
+       posix_spawn_file_actions_addfchdir_np using gl_CHECK_FUNCS_ANDROID
+       instead of AC_CHECK_FUNCS_ONCE.
+       * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
+       the Android API levels.
+       * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
+       Likewise.
+
        * lib/string.in.h (memset_explicit): Consider REPLACE_MEMSET_EXPLICIT.
        * m4/string_h.m4 (gl_STRING_H_DEFAULTS): Initialize
        REPLACE_MEMSET_EXPLICIT.
index 7d50ca80918e6baba90f7ac15116361737b6415b..a55b4517de8f612d41c40899f9bf6eb7e0b5e2f7 100644 (file)
@@ -13,8 +13,8 @@ Portability problems fixed by Gnulib:
 Portability problems not fixed by Gnulib:
 @itemize
 @item
-This function is missing on many non-glibc platforms:
-glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin 3.4.6, mingw, MSVC 14, Android 9.0.
+This function is missing on many platforms:
+glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.0, Cygwin 3.4.6, mingw, MSVC 14, Android API level 33.
 @end itemize
 
 Note: Gnulib has a module @code{posix_spawn_file_actions_addchdir} that
index 8a98195de9528c5ac8a8b2be2c943dbc8c626062..10f66e0a04d4834098d4d021079b340467dd6ec0 100644 (file)
@@ -13,8 +13,8 @@ Portability problems fixed by Gnulib:
 Portability problems not fixed by Gnulib:
 @itemize
 @item
-This function is missing on all non-glibc platforms:
-glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.4, Cygwin 3.4.6, mingw, MSVC 14, Android 9.0.
+This function is missing on many platforms:
+glibc 2.28, macOS 10.13, FreeBSD 13.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 7.1, HP-UX 11.31, IRIX 6.5, Solaris 11.4, Cygwin 3.4.6, mingw, MSVC 14, Android API level 33.
 @end itemize
 
 Note: Gnulib has a module @code{posix_spawn_file_actions_addfchdir} that
index e66da765ad44fc148b933a463fdc9d147b989e24..0066a45c8b88897d68e4ecd25c0804fb938ff9c7 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn.m4 serial 24
+# posix_spawn.m4 serial 25
 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -36,7 +36,8 @@ AC_DEFUN([gl_POSIX_SPAWN_BODY],
   if test $ac_cv_func_posix_spawn = yes; then
     m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR],
       [dnl Module 'posix_spawn_file_actions_addchdir' is present.
-       AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir_np])
+       gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addchdir_np],
+         [[#include <spawn.h>]])
        if test $ac_cv_func_posix_spawn_file_actions_addchdir_np = no; then
          dnl In order to implement the posix_spawn_file_actions_addchdir
          dnl function, we need to replace the entire posix_spawn facility.
@@ -45,7 +46,8 @@ AC_DEFUN([gl_POSIX_SPAWN_BODY],
       ])
     m4_ifdef([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR],
       [dnl Module 'posix_spawn_file_actions_addfchdir' is present.
-       AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir_np])
+       gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addfchdir_np],
+         [[#include <spawn.h>]])
        if test $ac_cv_func_posix_spawn_file_actions_addfchdir_np = no; then
          dnl In order to implement the posix_spawn_file_actions_addfchdir
          dnl function, we need to replace the entire posix_spawn facility.
index a65e87c6bb2948a79ba7ebdfd65e6d0469973ad0..a22e3a5323b42ad353cbea77d67efb07c91a6096 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn_faction_addchdir.m4 serial 1
+# posix_spawn_faction_addchdir.m4 serial 2
 dnl Copyright (C) 2018-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,9 @@ AC_DEFUN([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR],
   AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
   AC_REQUIRE([AC_PROG_CC])
   gl_POSIX_SPAWN
-  AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir posix_spawn_file_actions_addchdir_np])
+  AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addchdir])
+  gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addchdir_np],
+    [[#include <spawn.h>]])
   if test $ac_cv_func_posix_spawn_file_actions_addchdir = yes; then
     dnl This function is not yet standardized. Therefore override the
     dnl system's implementation always.
index a0eafe438a7e1904ba844f04eadf4127720b7dcf..9bddad5378c10eccf4130584ea9d5ac7c638df85 100644 (file)
@@ -1,4 +1,4 @@
-# posix_spawn_faction_addfchdir.m4 serial 1
+# posix_spawn_faction_addfchdir.m4 serial 2
 dnl Copyright (C) 2018-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,9 @@ AC_DEFUN([gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR],
   AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
   AC_REQUIRE([AC_PROG_CC])
   gl_POSIX_SPAWN
-  AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir posix_spawn_file_actions_addfchdir_np])
+  AC_CHECK_FUNCS_ONCE([posix_spawn_file_actions_addfchdir])
+  gl_CHECK_FUNCS_ANDROID([posix_spawn_file_actions_addfchdir_np],
+    [[#include <spawn.h>]])
   if test $ac_cv_func_posix_spawn_file_actions_addfchdir = yes; then
     dnl This function is not yet standardized. Therefore override the
     dnl system's implementation always.