utimens: fix broken m4 test
authorEric Blake <eblake@redhat.com>
Wed, 3 Nov 2010 17:36:14 +0000 (11:36 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 3 Nov 2010 17:37:37 +0000 (11:37 -0600)
* m4/utimens.m4 (gl_UTIMENS): Include correct headers.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/utimens.m4

index 72475ef..73e19da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-03  Eric Blake  <eblake@redhat.com>
+
+       utimens: fix broken m4 test
+       * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
+
 2010-10-28  Bruno Haible  <bruno@clisp.org>
 
        posix_spawn*, getdtablesize: Relax license.
index 2baa256..3e9cf3f 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 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;