cpython: 0774398c3433 (original) (raw)
Mercurial > cpython
changeset 100569:0774398c3433 3.5
Issue #17603: Check for st_blocks field without requiring fileblocks.o [#17603]
Martin Panter vadmium+py@gmail.com | |
---|---|
date | Fri, 18 Mar 2016 02:36:41 +0000 |
parents | ce62df22f3bf |
children | 628bd1ebfa22 700ae1bfc453 |
files | Misc/NEWS configure configure.ac pyconfig.h.in |
diffstat | 4 files changed, 5 insertions(+), 16 deletions(-)[+] [-] Misc/NEWS 3 configure 12 configure.ac 2 pyconfig.h.in 4 |
line wrap: on
line diff
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -319,6 +319,9 @@ Tests Build ----- +- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a
--- a/configure +++ b/configure @@ -12869,17 +12869,7 @@ cat >>confdefs.h <<_ACEOF _ACEOF -$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h - -else
- case " $LIBOBJS " in
- " fileblocks.$ac_objext " ) ;;
- *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
- ;; -esac - -fi - +fi { asecho"as_echo "asecho"as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
--- a/configure.ac +++ b/configure.ac @@ -3727,7 +3727,7 @@ 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_CHECK_MEMBERS([struct stat.st_blocks]) AC_MSG_CHECKING(for time.h that defines altzone) AC_CACHE_VAL(ac_cv_header_time_altzone,[
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -934,10 +934,6 @@
/* Define to 1 if tm_zone' is a member of
struct tm'. /
#undef HAVE_STRUCT_TM_TM_ZONE
-/ Define to 1 if your struct stat' has
st_blocks'. Deprecated, use
/* Define if you have the 'symlink' function. */ #undef HAVE_SYMLINK