]> Savannah Git Hosting - gnulib.git/commitdiff
utimens: Fix warning on Android.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 11:38:49 +0000 (12:38 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 13:38:08 +0000 (14:38 +0100)
* m4/utimens.m4 (gl_UTIMENS): Test for futimesat and futimes using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.

ChangeLog
m4/utimens.m4

index 14e3e5661794ec089c139f940013eda43facb2b1..f67f1755bc7daf51558a6ea5fd106970fef0bd5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-10  Bruno Haible  <bruno@clisp.org>
+
+       utimens: Fix warning on Android.
+       * m4/utimens.m4 (gl_UTIMENS): Test for futimesat and futimes using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+
 2023-01-10  Bruno Haible  <bruno@clisp.org>
 
        secure_getenv: Fix warning on Android.
index ae35ef789b8849cf349dbb10eef6e7fd033e1f14..c5d9b69e6f55784f973ccb08305c19b1b92e3e73 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 11
+dnl serial 12
 
 AC_DEFUN([gl_UTIMENS],
 [
@@ -11,7 +11,9 @@ 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([futimes futimesat futimens utimensat lutimes])
+  AC_CHECK_FUNCS_ONCE([futimens utimensat lutimes])
+  gl_CHECK_FUNCS_ANDROID([futimes], [[#include <sys/time.h>]])
+  gl_CHECK_FUNCS_ANDROID([futimesat], [[#include <sys/time.h>]])
 
   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
     dnl FreeBSD 8.0-rc2 mishandles futimesat(fd,NULL,time).  It is not