]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #17603: Check for st_blocks field without requiring fileblocks.o
authorMartin Panter <vadmium+py@gmail.com>
Fri, 18 Mar 2016 02:36:41 +0000 (02:36 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 18 Mar 2016 02:36:41 +0000 (02:36 +0000)
Misc/NEWS
configure
configure.ac
pyconfig.h.in

index 7516932ec54dfdc3a6dc4b0f8f2e8551b5a42d38..eef7f0164f407a2ba01cd3bd8068c9ac715a1454 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -319,6 +319,9 @@ Tests
 Build
 -----
 
+- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a
+  lower-level check for st_blocks in struct stat.
+
 - Issue #26079: Fixing the build output folder for tix-8.4.3.6. Patch by
   Bjoern Thiel.
 
index a4847c37e3226f3f6aaf09af62eabeed87c123b8..9ff548f8d14fdb431bcbc752b7b7aac32bc820ee 100755 (executable)
--- a/configure
+++ b/configure
@@ -12869,19 +12869,9 @@ 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
 
 
-
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
 $as_echo_n "checking for time.h that defines altzone... " >&6; }
 if ${ac_cv_header_time_altzone+:} false; then :
index bacb7b06a1d962ded8c17c78b9c0b52eeaae6575..282610a3dc163b2375335ba18cd501553dcaa3bb 100644 (file)
@@ -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,[
index b0cafb318574c9ddf2ff1e296fbeabde90e76353..e017d4ea316cf652487d467dbfd0916804fbef57 100644 (file)
 /* 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
-   `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */
-#undef HAVE_ST_BLOCKS
-
 /* Define if you have the 'symlink' function. */
 #undef HAVE_SYMLINK