projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inet_ntop, inet_pton: Look for it also in libresolv.
[gnulib.git]
/
m4
/
utimens.m4
diff --git
a/m4/utimens.m4
b/m4/utimens.m4
index
35ef949
..
e90947f
100644
(file)
--- a/
m4/utimens.m4
+++ b/
m4/utimens.m4
@@
-1,15
+1,12
@@
-dnl Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free
-dnl 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 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
6
AC_DEFUN([gl_UTIMENS],
[
AC_DEFUN([gl_UTIMENS],
[
- AC_LIBOBJ([utimens])
-
dnl Prerequisites of lib/utimens.c.
AC_REQUIRE([gl_FUNC_UTIMES])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
dnl Prerequisites of lib/utimens.c.
AC_REQUIRE([gl_FUNC_UTIMES])
AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
@@
-26,6
+23,7
@@
AC_DEFUN([gl_UTIMENS],
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <stddef.h>
#include <sys/times.h>
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;
]], [[ int fd = open ("conftest.file", O_RDWR);
if (fd < 0) return 1;
if (futimesat (fd, NULL, NULL)) return 2;