]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 28.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 13:33:37 +0000 (14:33 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:57:20 +0000 (15:57 +0100)
* m4/glob.m4 (gl_GLOB): Conditionally set REPLACE_GLOB.
* lib/glob.in.h (glob): Disable _GL_CXXALIASWARN invocation on non-glibc
systems.

ChangeLog
lib/glob.in.h
m4/glob.m4

index fa9d220e0c72519ff8c5485ddd07d938127a75b3..152b3399faf6c6e0fee89d066de8d48bcb78ff77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 
        Resolve conflicts for functions introduced in Android API level 28.
 
+       * m4/glob.m4 (gl_GLOB): Conditionally set REPLACE_GLOB.
+       * lib/glob.in.h (glob): Disable _GL_CXXALIASWARN invocation on non-glibc
+       systems.
+
        * lib/unistd.in.h (getentropy): Consider REPLACE_GETENTROPY. Disable
        _GL_CXXALIASWARN invocation on non-glibc systems.
        * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETENTROPY.
index c628a9bcbd74fd497aa5d35e045d6fdd54ef316c..7fc3ef7347b3a1245f719ae96b42fe77a0c79a59 100644 (file)
@@ -120,7 +120,9 @@ _GL_CXXALIAS_SYS (glob, int, (const char *_Restrict_ __pattern, int __flags,
                               _gl_glob_errfunc_fn __errfunc,
                               glob_t *_Restrict_ __pglob));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (glob);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef glob
 # if HAVE_RAW_DECL_GLOB
index 9365f3362d8b2e566ac10bd26e5c18ae0fe99abf..62be6a33979465ece163b172573e9c50aeb8d906 100644 (file)
@@ -1,4 +1,4 @@
-# glob.m4 serial 29
+# glob.m4 serial 30
 dnl Copyright (C) 2005-2007, 2009-2023 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,6 +16,9 @@ AC_DEFUN([gl_GLOB],
   gl_CHECK_FUNCS_ANDROID([glob], [[#include <glob.h>]])
   if test $ac_cv_func_glob = no; then
     HAVE_GLOB=0
+    case "$gl_cv_onwards_func_glob" in
+      future*) REPLACE_GLOB=1 ;;
+    esac
   else
 
     AC_CACHE_CHECK([for GNU glob interface version 1 or 2],