summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2012-03-04 00:35:28 +0000
committerPaul Smith <psmith@gnu.org>2012-03-04 00:35:28 +0000
commitfdb5fcc28d5e991d1d194d6e6a194c47108d103a (patch)
treec74551798348b26005f98d3a5f7487c8d88e8553
parent23c2b99e9d23e726ede9442728272616e66d416f (diff)
downloadgunmake-fdb5fcc28d5e991d1d194d6e6a194c47108d103a.tar.gz
Support nanosecond timestamps in stat() for AIX 5.2+.
Fixes Savannah bug #32485
-rw-r--r--ChangeLog3
-rw-r--r--acinclude.m44
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c3b949..e05b906 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2012-03-03 Paul Smith <psmith@gnu.org>
+ * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add support for AIX 5.2+
+ nanosecond timestamps. Fixes Savannah bug #32485.
+
Convert uses of `foo' for quoting to 'foo' to reflect changes in
the GNU Coding Standards. Fixes Savannah bug #34530.
diff --git a/acinclude.m4 b/acinclude.m4
index 6d273e5..0935568 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -101,6 +101,7 @@ changequote([,])dnl
dnl ---------------------------------------------------------------------------
dnl From Paul Eggert <eggert@twinsun.com>
dnl Update for Darwin by Troy Runkel <Troy.Runkel@mathworks.com>
+dnl Update for AIX by Olexiy Buyanskyy (Savannah bug 32485)
AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC],
[AC_CACHE_CHECK([for nanoseconds field of struct stat],
@@ -112,8 +113,9 @@ AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC],
# (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
# && !defined __EXTENSIONS__)
# st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
+ # st_mtime_n -- AIX 5.2 and above
# st_mtimespec.tv_nsec -- Darwin (Mac OSX)
- for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtimespec.tv_nsec; do
+ for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/stat.h>