diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2005-08-09 15:00:59 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2005-08-09 15:00:59 +0000 |
commit | ebd9d5ba1abc432f3a11b99ac32657b4cea7ecfd (patch) | |
tree | f6ac9d05bb7227ea9bbccf8612e6e6b6553abe90 /configure.in | |
parent | 147fbe5a558094f5690636476ca8da648703141a (diff) | |
download | cpython-git-ebd9d5ba1abc432f3a11b99ac32657b4cea7ecfd.tar.gz |
Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
add st_gen, st_birthtime.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 7d6fe82567..15a2a06bf7 100644 --- a/configure.in +++ b/configure.in @@ -2424,6 +2424,8 @@ AC_STRUCT_TIMEZONE AC_CHECK_MEMBERS([struct stat.st_rdev]) AC_CHECK_MEMBERS([struct stat.st_blksize]) AC_CHECK_MEMBERS([struct stat.st_flags]) +AC_CHECK_MEMBERS([struct stat.st_gen]) +AC_CHECK_MEMBERS([struct stat.st_birthtime]) AC_STRUCT_ST_BLOCKS AC_MSG_CHECKING(for time.h that defines altzone) @@ -3042,6 +3044,23 @@ then [Define if you have struct stat.st_mtim.tv_nsec]) fi +# Look for BSD style subsecond timestamps in struct stat +AC_MSG_CHECKING(for tv_nsec2 in struct stat) +AC_CACHE_VAL(ac_cv_stat_tv_nsec2, +AC_TRY_COMPILE([#include <sys/stat.h>], [ +struct stat st; +st.st_mtimespec.tv_nsec = 1; +], +ac_cv_stat_tv_nsec2=yes, +ac_cv_stat_tv_nsec2=no, +ac_cv_stat_tv_nsec2=no)) +AC_MSG_RESULT($ac_cv_stat_tv_nsec2) +if test "$ac_cv_stat_tv_nsec2" = yes +then + AC_DEFINE(HAVE_STAT_TV_NSEC2, 1, + [Define if you have struct stat.st_mtimensec]) +fi + # On HP/UX 11.0, mvwdelch is a block with a return statement AC_MSG_CHECKING(whether mvwdelch is an expression) AC_CACHE_VAL(ac_cv_mvwdelch_is_expression, |