bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] utimens: fix broken m4 test


From: Eric Blake
Subject: [PATCH] utimens: fix broken m4 test
Date: Wed, 3 Nov 2010 11:39:29 -0600

* m4/utimens.m4 (gl_UTIMENS): Include correct headers.

Signed-off-by: Eric Blake <address@hidden>
---

Well this is embarrassing.  The configure test for whether
futimesat(,NULL,) works failed because O_RDWR was not
declared.  I'm pushing this, then retesting to see if
Solaris 10 still has issues with setting fd times.

 ChangeLog     |    5 +++++
 m4/utimens.m4 |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 72475ef..73e19da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-03  Eric Blake  <address@hidden>
+
+       utimens: fix broken m4 test
+       * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
+
 2010-10-28  Bruno Haible  <address@hidden>

        posix_spawn*, getdtablesize: Relax license.
diff --git a/m4/utimens.m4 b/m4/utimens.m4
index 2baa256..3e9cf3f 100644
--- a/m4/utimens.m4
+++ b/m4/utimens.m4
@@ -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 4
+dnl serial 5

 AC_DEFUN([gl_UTIMENS],
 [
@@ -25,6 +25,7 @@ AC_DEFUN([gl_UTIMENS],
        AC_RUN_IFELSE([AC_LANG_PROGRAM([[
 #include <stddef.h>
 #include <sys/times.h>
+#include <fcntl.h>
 ]], [[    int fd = open ("conftest.file", O_RDWR);
           if (fd < 0) return 1;
           if (futimesat (fd, NULL, NULL)) return 2;
-- 
1.7.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]