]> Savannah Git Hosting - gnulib.git/commitdiff
Fix warnings for functions introduced in Android API level 19.
authorBruno Haible <bruno@clisp.org>
Thu, 19 Jan 2023 20:55:25 +0000 (21:55 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 19 Jan 2023 20:55:25 +0000 (21:55 +0100)
* m4/futimens.m4 (gl_FUNC_FUTIMENS): Test for futimens using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
* m4/utimens.m4 (gl_UTIMENS): Likewise.
* m4/imaxabs.m4 (gl_FUNC_IMAXABS): Test for imaxabs using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
* m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Test for imaxdiv using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.

ChangeLog
m4/futimens.m4
m4/imaxabs.m4
m4/imaxdiv.m4
m4/utimens.m4

index 7d80045e8102845c8937fec681d8b6c362c939d3..33693bec9c2f4910305f1254d616e1c0fd01c0c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2023-01-19  Bruno Haible  <bruno@clisp.org>
+
+       Fix warnings for functions introduced in Android API level 19.
+       * m4/futimens.m4 (gl_FUNC_FUTIMENS): Test for futimens using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+       * m4/utimens.m4 (gl_UTIMENS): Likewise.
+       * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Test for imaxabs using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+       * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Test for imaxdiv using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+
 2023-01-19  Bruno Haible  <bruno@clisp.org>
 
        Fix warnings for functions introduced in Android API level 18.
index 3aaa10a0b52cfab08bae844ac314a10b62fac9e1..8e997d6ea63ad13d8aa87e5a01e6d10c6a212247 100644 (file)
@@ -1,4 +1,4 @@
-# serial 9
+# serial 10
 # See if we need to provide futimens replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_FUTIMENS],
   AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
-  AC_CHECK_FUNCS_ONCE([futimens])
+  gl_CHECK_FUNCS_ANDROID([futimens], [[#include <sys/stat.h>]])
   if test $ac_cv_func_futimens = no; then
     HAVE_FUTIMENS=0
   else
index 5fb2a6963ffa86f4e0b657a6d5b288372a083839..504db4845c2da365e89222dac8250c0d7fcf075e 100644 (file)
@@ -1,4 +1,4 @@
-# imaxabs.m4 serial 4
+# imaxabs.m4 serial 5
 dnl Copyright (C) 2006, 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,
@@ -9,7 +9,7 @@ AC_DEFUN([gl_FUNC_IMAXABS],
   AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
 
   dnl On OSF/1 5.1 with cc, this function is declared but not defined.
-  AC_CHECK_FUNCS_ONCE([imaxabs])
+  gl_CHECK_FUNCS_ANDROID([imaxabs], [[#include <inttypes.h>]])
   AC_CHECK_DECLS_ONCE([imaxabs])
   if test "$ac_cv_have_decl_imaxabs" != yes; then
     HAVE_DECL_IMAXABS=0
index 65d2c65cbb11c4a44a7458dbf3a930fe0bcfb9e3..7ad5da4ebf8ad0284648d5264cb72310b940bac7 100644 (file)
@@ -1,4 +1,4 @@
-# imaxdiv.m4 serial 5
+# imaxdiv.m4 serial 6
 dnl Copyright (C) 2006, 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,
@@ -9,7 +9,7 @@ AC_DEFUN([gl_FUNC_IMAXDIV],
   AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
 
   dnl On OSF/1 5.1 with cc, this function is declared but not defined.
-  AC_CHECK_FUNCS_ONCE([imaxdiv])
+  gl_CHECK_FUNCS_ANDROID([imaxdiv], [[#include <inttypes.h>]])
   AC_CHECK_DECLS_ONCE([imaxdiv])
   if test "$ac_cv_have_decl_imaxdiv" != yes; then
     HAVE_DECL_IMAXDIV=0
index 900b4f6aa34599bdead58c7107269efa66617492..ffd289e1c7cb775d9f1f27409bfd0111c29e9598 100644 (file)
@@ -3,7 +3,7 @@ dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
-dnl serial 13
+dnl serial 14
 
 AC_DEFUN([gl_UTIMENS],
 [
@@ -11,9 +11,10 @@ AC_DEFUN([gl_UTIMENS],
   AC_REQUIRE([gl_FUNC_UTIMES])
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
-  AC_CHECK_FUNCS_ONCE([futimens lutimes])
+  AC_CHECK_FUNCS_ONCE([lutimes])
   gl_CHECK_FUNCS_ANDROID([futimes], [[#include <sys/time.h>]])
   gl_CHECK_FUNCS_ANDROID([futimesat], [[#include <sys/time.h>]])
+  gl_CHECK_FUNCS_ANDROID([futimens], [[#include <sys/stat.h>]])
   gl_CHECK_FUNCS_ANDROID([utimensat], [[#include <sys/stat.h>]])
 
   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then