Skip to content

Commit a45120d

Browse files
committed
Issue #17603: Check for st_blocks field without requiring fileblocks.o
1 parent ec8d6c2 commit a45120d

4 files changed

Lines changed: 4 additions & 15 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ Tests
170170
Build
171171
-----
172172

173+
- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a
174+
lower-level check for st_blocks in struct stat.
175+
173176
- Issue #26465: Update Windows builds to use OpenSSL 1.0.2g.
174177

175178
- Issue #24421: Compile Modules/_math.c once, before building extensions.

configure

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11962,19 +11962,9 @@ cat >>confdefs.h <<_ACEOF
1196211962
_ACEOF
1196311963
1196411964
11965-
$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
11966-
11967-
else
11968-
case " $LIBOBJS " in
11969-
*" fileblocks.$ac_objext "* ) ;;
11970-
*) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11971-
;;
11972-
esac
11973-
1197411965
fi
1197511966
1197611967
11977-
1197811968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
1197911969
$as_echo_n "checking for time.h that defines altzone... " >&6; }
1198011970
if ${ac_cv_header_time_altzone+:} false; then :

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ AC_CHECK_MEMBERS([struct stat.st_blksize])
34393439
AC_CHECK_MEMBERS([struct stat.st_flags])
34403440
AC_CHECK_MEMBERS([struct stat.st_gen])
34413441
AC_CHECK_MEMBERS([struct stat.st_birthtime])
3442-
AC_STRUCT_ST_BLOCKS
3442+
AC_CHECK_MEMBERS([struct stat.st_blocks])
34433443

34443444
AC_MSG_CHECKING(for time.h that defines altzone)
34453445
AC_CACHE_VAL(ac_cv_header_time_altzone,[

pyconfig.h.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,6 @@
731731
/* Define to 1 if `tm_zone' is a member of `struct tm'. */
732732
#undef HAVE_STRUCT_TM_TM_ZONE
733733

734-
/* Define to 1 if your `struct stat' has `st_blocks'. Deprecated, use
735-
`HAVE_STRUCT_STAT_ST_BLOCKS' instead. */
736-
#undef HAVE_ST_BLOCKS
737-
738734
/* Define if you have the 'symlink' function. */
739735
#undef HAVE_SYMLINK
740736

0 commit comments

Comments
 (0)