]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 19.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 01:43:23 +0000 (02:43 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:56:20 +0000 (15:56 +0100)
* m4/futimens.m4 (gl_FUNC_FUTIMENS): Conditionally set REPLACE_FUTIMENS.
* lib/sys_stat.in.h (futimens): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/sys_stat.in.h
m4/futimens.m4

index acd6ddfe0f6982cd6a20eb1369a4b5786ededc8d..ace915fe22beaa3cac6000360fc818feab52aaec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-01-22  Bruno Haible  <bruno@clisp.org>
+
+       Resolve conflicts for functions introduced in Android API level 19.
+
+       * m4/futimens.m4 (gl_FUNC_FUTIMENS): Conditionally set REPLACE_FUTIMENS.
+       * lib/sys_stat.in.h (futimens): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
 2023-01-22  Bruno Haible  <bruno@clisp.org>
 
        Resolve conflicts for functions introduced in Android API level 18.
index 915cab08fbd108f6b5178f3422e3de41633fbd7e..7d92239dd1853f49d192ac049f74a59565ad0576 100644 (file)
@@ -549,7 +549,7 @@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2]));
 #  endif
 _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2]));
 # endif
-# if @HAVE_FUTIMENS@
+# if __GLIBC__ >= 2 && @HAVE_FUTIMENS@
 _GL_CXXALIASWARN (futimens);
 # endif
 #elif defined GNULIB_POSIXCHECK
index 8e997d6ea63ad13d8aa87e5a01e6d10c6a212247..dc0b21b9d51589540e99d2d47337c5bf80e8f90b 100644 (file)
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
 # See if we need to provide futimens replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -16,6 +16,9 @@ AC_DEFUN([gl_FUNC_FUTIMENS],
   gl_CHECK_FUNCS_ANDROID([futimens], [[#include <sys/stat.h>]])
   if test $ac_cv_func_futimens = no; then
     HAVE_FUTIMENS=0
+    case "$gl_cv_onwards_func_futimens" in
+      future*) REPLACE_FUTIMENS=1 ;;
+    esac
   else
     AC_CACHE_CHECK([whether futimens works],
       [gl_cv_func_futimens_works],