]> Savannah Git Hosting - gnulib.git/commitdiff
utime: Fix configure test (regression 2020-12-04).
authorBruno Haible <bruno@clisp.org>
Sat, 23 Jan 2021 21:10:25 +0000 (22:10 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 23 Jan 2021 21:10:25 +0000 (22:10 +0100)
Reported by Ryan Schmidt <wget@ryandesign.com> via Tim Rühsen in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00282.html>.

* m4/utime.m4 (gl_FUNC_UTIME): In the test program, include <utime.h>,
not <time.h>.

ChangeLog
m4/utime.m4

index 43d1a1671c808110014b33e4221ffdcae0727381..2cd75b4a4075d273e6c4f462ad2b2d4581c80ea9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-01-23  Bruno Haible  <bruno@clisp.org>
+
+       utime: Fix configure test (regression 2020-12-04).
+       Reported by Ryan Schmidt <wget@ryandesign.com> via Tim Rühsen in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00282.html>.
+       * m4/utime.m4 (gl_FUNC_UTIME): In the test program, include <utime.h>,
+       not <time.h>.
+
 2021-01-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        libc-config: port to Xcode 7
index 03df7b7282500c7353ed4ba229830c8092f81f7c..4ed415811d5f242ebe3de4a6d87a38760cb8a21c 100644 (file)
@@ -1,4 +1,4 @@
-# utime.m4 serial 3
+# utime.m4 serial 4
 dnl Copyright (C) 2017-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -34,7 +34,7 @@ AC_DEFUN([gl_FUNC_UTIME],
            AC_RUN_IFELSE(
              [AC_LANG_PROGRAM(
                [[#include <stddef.h>
-                 #include <time.h>
+                 #include <utime.h>
                ]],
                [[int result = 0;
                  if (!utime ("conftest.tmp/", NULL))