diff options
author | Bruno Haible <bruno@clisp.org> | 2021-01-23 22:10:25 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-01-23 22:10:25 +0100 |
commit | c20ba6929e5ac4a9cc72cd2b1f2d938e219adb01 (patch) | |
tree | 51beaf19d4e2e81175e1df037b0d121db3c790c6 | |
parent | 195a10b512067f18c79da0b2184689bc5520517c (diff) | |
download | gnulib-c20ba6929e5ac4a9cc72cd2b1f2d938e219adb01.tar.gz gnulib-c20ba6929e5ac4a9cc72cd2b1f2d938e219adb01.tar.bz2 |
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>.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | m4/utime.m4 | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ | |||
1 | 2021-01-23 Bruno Haible <bruno@clisp.org> | ||
2 | |||
3 | utime: Fix configure test (regression 2020-12-04). | ||
4 | Reported by Ryan Schmidt <wget@ryandesign.com> via Tim Rühsen in | ||
5 | <https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00282.html>. | ||
6 | * m4/utime.m4 (gl_FUNC_UTIME): In the test program, include <utime.h>, | ||
7 | not <time.h>. | ||
8 | |||
1 | 2021-01-23 Paul Eggert <eggert@cs.ucla.edu> | 9 | 2021-01-23 Paul Eggert <eggert@cs.ucla.edu> |
2 | 10 | ||
3 | libc-config: port to Xcode 7 | 11 | libc-config: port to Xcode 7 |
diff --git a/m4/utime.m4 b/m4/utime.m4 index 03df7b7282..4ed415811d 100644 --- a/m4/utime.m4 +++ b/m4/utime.m4 | |||
@@ -1,4 +1,4 @@ | |||
1 | # utime.m4 serial 3 | 1 | # utime.m4 serial 4 |
2 | dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
@@ -34,7 +34,7 @@ AC_DEFUN([gl_FUNC_UTIME], | |||
34 | AC_RUN_IFELSE( | 34 | AC_RUN_IFELSE( |
35 | [AC_LANG_PROGRAM( | 35 | [AC_LANG_PROGRAM( |
36 | [[#include <stddef.h> | 36 | [[#include <stddef.h> |
37 | #include <time.h> | 37 | #include <utime.h> |
38 | ]], | 38 | ]], |
39 | [[int result = 0; | 39 | [[int result = 0; |
40 | if (!utime ("conftest.tmp/", NULL)) | 40 | if (!utime ("conftest.tmp/", NULL)) |