projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read-file: Don't occupy too much unused memory.
[gnulib.git]
/
m4
/
utimensat.m4
diff --git
a/m4/utimensat.m4
b/m4/utimensat.m4
index
21e1ea5
..
1110e07
100644
(file)
--- a/
m4/utimensat.m4
+++ b/
m4/utimensat.m4
@@
-1,7
+1,7
@@
-# serial
2
+# serial
3
# See if we need to provide utimensat replacement.
# See if we need to provide utimensat replacement.
-dnl Copyright (C) 2009 Free Software Foundation, Inc.
+dnl Copyright (C) 2009
, 2010
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.
@@
-35,10
+35,12
@@
AC_DEFUN([gl_FUNC_UTIMENSAT],
if (utimensat (AT_FDCWD, f, ts, 0)) return 4;
if (stat (f, &st)) return 5;
if (st.st_ctime < st.st_atime) return 6;]])],
if (utimensat (AT_FDCWD, f, ts, 0)) return 4;
if (stat (f, &st)) return 5;
if (st.st_ctime < st.st_atime) return 6;]])],
+dnl FIXME: simplify this in 2012, when file system bugs are no longer common
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifdef __linux__
/* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifdef __linux__
/* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
- in 2.6.32. Always replace utimensat to support older kernels. */
+ in several file systems as recently as 2.6.32. Always replace utimensat
+ to support older kernels. */
choke me
#endif
]])],
choke me
#endif
]])],