You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/17 05:36:50 UTC

svn commit: r585349 - in /apr/apr/branches/1.2.x: configure.in file_io/unix/filestat.c

Author: wrowe
Date: Tue Oct 16 20:36:49 2007
New Revision: 585349

URL: http://svn.apache.org/viewvc?rev=585349&view=rev
Log:
Pick up AIX 5.2 onwards

Backport: 585348

Modified:
    apr/apr/branches/1.2.x/configure.in
    apr/apr/branches/1.2.x/file_io/unix/filestat.c

Modified: apr/apr/branches/1.2.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/configure.in?rev=585349&r1=585348&r2=585349&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/configure.in (original)
+++ apr/apr/branches/1.2.x/configure.in Tue Oct 16 20:36:49 2007
@@ -1822,7 +1822,8 @@
 echo "${nl}Checking for File Info Support..."
 AC_CHECK_MEMBERS([struct stat.st_blocks, struct stat.st_atimensec,
 struct stat.st_ctimensec, struct stat.st_mtimensec, struct stat.st_atim.tv_nsec,
-struct stat.st_ctim.tv_nsec, struct stat.st_mtim.tv_nsec],,,[
+struct stat.st_ctim.tv_nsec, struct stat.st_mtim.tv_nsec,
+struct stat.st_atime_n, struct stat.st_ctime_n, struct stat.st_mtime_n],,,[
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif

Modified: apr/apr/branches/1.2.x/file_io/unix/filestat.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/file_io/unix/filestat.c?rev=585349&r1=585348&r2=585349&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/file_io/unix/filestat.c (original)
+++ apr/apr/branches/1.2.x/file_io/unix/filestat.c Tue Oct 16 20:36:49 2007
@@ -85,6 +85,8 @@
     finfo->atime += info->st_atim.tv_nsec / APR_TIME_C(1000);
 #elif defined(HAVE_STRUCT_STAT_ST_ATIMENSEC)
     finfo->atime += info->st_atimensec / APR_TIME_C(1000);
+#elif defined(HAVE_STRUCT_STAT_ST_ATIME_N)
+    finfo->ctime += info->st_atime_n / APR_TIME_C(1000);
 #endif
 
     apr_time_ansi_put(&finfo->mtime, info->st_mtime);
@@ -92,6 +94,8 @@
     finfo->mtime += info->st_mtim.tv_nsec / APR_TIME_C(1000);
 #elif defined(HAVE_STRUCT_STAT_ST_MTIMENSEC)
     finfo->mtime += info->st_mtimensec / APR_TIME_C(1000);
+#elif defined(HAVE_STRUCT_STAT_ST_MTIME_N)
+    finfo->ctime += info->st_mtime_n / APR_TIME_C(1000);
 #endif
 
     apr_time_ansi_put(&finfo->ctime, info->st_ctime);
@@ -99,6 +103,8 @@
     finfo->ctime += info->st_ctim.tv_nsec / APR_TIME_C(1000);
 #elif defined(HAVE_STRUCT_STAT_ST_CTIMENSEC)
     finfo->ctime += info->st_ctimensec / APR_TIME_C(1000);
+#elif defined(HAVE_STRUCT_STAT_ST_CTIME_N)
+    finfo->ctime += info->st_ctime_n / APR_TIME_C(1000);
 #endif
 
 #ifdef HAVE_STRUCT_STAT_ST_BLOCKS