diff options
author | Eric Blake <ebb9@byu.net> | 2008-05-28 21:29:02 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-05-29 06:05:53 -0600 |
commit | faeb3e6b2191565dc3197804cd9ff624f26a1004 (patch) | |
tree | 136384e8b09410527b03a055d61fcd32f8fee4e4 /m4 | |
parent | a0ecdf40d5612e344770130b895d41c90c167dad (diff) | |
download | gnulib-faeb3e6b2191565dc3197804cd9ff624f26a1004.tar.gz |
Prefer new POSIX 200x interfaces over futimesat.
* m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
* lib/utimens.c (gl_futimens): Use them for nanosecond resolution
when available.
[HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/utimens.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/utimens.m4 b/m4/utimens.m4 index 9ac9c3ea1e..01a3184ce2 100644 --- a/m4/utimens.m4 +++ b/m4/utimens.m4 @@ -1,8 +1,11 @@ -dnl Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Free Software +dnl 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 2 + AC_DEFUN([gl_UTIMENS], [ AC_LIBOBJ([utimens]) @@ -11,5 +14,5 @@ AC_DEFUN([gl_UTIMENS], AC_REQUIRE([gl_FUNC_UTIMES]) AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF]) - AC_CHECK_FUNCS_ONCE([futimes futimesat]) + AC_CHECK_FUNCS_ONCE([futimes futimesat futimens utimensat]) ]) |