Import upstream version 1.26
[debian/tar] / m4 / utimens.m4
index 2baa2561035f528ad7eafd190abb4cd230ab0299..f2c755e87901f9550ea37122c1b8c2610aece675 100644 (file)
@@ -1,9 +1,9 @@
-dnl Copyright (C) 2003-2010 Free Software Foundation, Inc.
+dnl Copyright (C) 2003-2011 Free Software Foundation, Inc.
 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;