Skip to content

Commit 4e4e917

Browse files
committed
Allow statx to be explicitly configured out for old glibc
1 parent d53650a commit 4e4e917

5 files changed

Lines changed: 230 additions & 89 deletions

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,8 @@ extern char *ctermid_r(char *);
408408
# define STRUCT_STAT struct stat
409409
#endif
410410

411-
#if defined(__linux__) && defined(STATX_BASIC_STATS)
411+
#ifdef HAVE_LINUX_STATX
412412
# pragma weak statx
413-
# define HAVE_LINUX_STATX 1
414413
# define HAVE_LINUX_STATX_RUNTIME (statx != NULL)
415414
/* provide definitions introduced later than statx itself */
416415
# define _Py_STATX_MNT_ID 0x00001000U

aclocal.m4

Lines changed: 54 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)