]> granicus.if.org Git - python/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 c2b6e27b98e0266c44cd656346827d026d9363d1..7eab74b6e5bda5cb58db2fdf9d2127594bf6d96f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -170,6 +170,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 #26465: Update Windows builds to use OpenSSL 1.0.2g.
 
 - Issue #24421: Compile Modules/_math.c once, before building extensions.
index 33092525ba541dd89faffff46bbf7fddaa27f818..2db8fbbc0bc88d5c630159fc46bca512b2c49961 100755 (executable)
--- a/configure
+++ b/configure
@@ -11962,19 +11962,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 cd6a9bcaac248bd3d42c773e8aae59c62dda8253..864b1b9be2ba851fd1191711f0c83c7e912c98e4 100644 (file)
@@ -3439,7 +3439,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 219bff3417456c0fd4f46ac7187a5238a590e00d..7f1b68987be4a6431a241c87b564c67347e6c5f4 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