changeset 13831:a1a57873cef7

utimens: fix broken m4 test * m4/utimens.m4 (gl_UTIMENS): Include correct headers. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 03 Nov 2010 11:36:14 -0600
parents 10297800b5ad
children 992d47604da1
files ChangeLog m4/utimens.m4
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/m4/utimens.m4
+++ b/m4/utimens.m4
@@ -3,7 +3,7 @@
 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_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;