summaryrefslogtreecommitdiff
path: root/gl/m4/utimens.m4
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2023-09-23 22:11:07 +0100
committerColin Watson <cjwatson@debian.org>2023-09-23 22:11:07 +0100
commit10ffa2be71a9ba46c4328b3792a2001f4092625d (patch)
treec643da154a95a1d163137135050bb47858a1654e /gl/m4/utimens.m4
parent0a730625ad4880fdd63fc21efb1b18966042c2f4 (diff)
parent407693f34f450050ecdbe9ad3147c8afa0e7616b (diff)
Import man-db_2.12.0.orig.tar.xz
Diffstat (limited to 'gl/m4/utimens.m4')
-rw-r--r--gl/m4/utimens.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/gl/m4/utimens.m4 b/gl/m4/utimens.m4
index 62aec78a..5f860616 100644
--- a/gl/m4/utimens.m4
+++ b/gl/m4/utimens.m4
@@ -1,9 +1,9 @@
-dnl Copyright (C) 2003-2022 Free Software Foundation, Inc.
+dnl Copyright (C) 2003-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,
dnl with or without modifications, as long as this notice is preserved.
-dnl serial 11
+dnl serial 15
AC_DEFUN([gl_UTIMENS],
[
@@ -11,7 +11,11 @@ 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])
+ gl_CHECK_FUNCS_ANDROID([futimes], [[#include <sys/time.h>]])
+ gl_CHECK_FUNCS_ANDROID([futimesat], [[#include <sys/time.h>]])
+ gl_CHECK_FUNCS_ANDROID([lutimes], [[#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
dnl FreeBSD 8.0-rc2 mishandles futimesat(fd,NULL,time). It is not