Message400614
On my Fedora 34, running ./configure creates pyconfig.h with these values:
$ grep -E '_POSIX_C_SOURCE|_XOPEN_SOURCE' -B1 pyconfig.h
/* Define to activate features from IEEE Stds 1003.1-2008 */
#define _POSIX_C_SOURCE 200809L
--
/* Define to the level of X/Open that your system supports */
#define _XOPEN_SOURCE 700
--
/* Define to activate Unix95-and-earlier features */
#define _XOPEN_SOURCE_EXTENDED 1
Relevant lines in configure.ac:
---
if test $define_xopen_source = yes
then
# X/Open 7, incorporating POSIX.1-2008
AC_DEFINE(_XOPEN_SOURCE, 700,
Define to the level of X/Open that your system supports)
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
# definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
# several APIs are not declared. Since this is also needed in some
# cases for HP-UX, we define it globally.
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1,
Define to activate Unix95-and-earlier features)
AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008)
fi
--- |
|
Date |
User |
Action |
Args |
2021-08-30 15:01:21 | vstinner | set | recipients:
+ vstinner, loewis, koobs, RAW, iritkatriel |
2021-08-30 15:01:21 | vstinner | set | messageid: <1630335681.45.0.289082897432.issue17120@roundup.psfhosted.org> |
2021-08-30 15:01:21 | vstinner | link | issue17120 messages |
2021-08-30 15:01:21 | vstinner | create | |
|