This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients RAW, iritkatriel, koobs, loewis, vstinner
Date 2021-08-30.15:01:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630335681.45.0.289082897432.issue17120@roundup.psfhosted.org>
In-reply-to
Content
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
---
History
Date User Action Args
2021-08-30 15:01:21vstinnersetrecipients: + vstinner, loewis, koobs, RAW, iritkatriel
2021-08-30 15:01:21vstinnersetmessageid: <1630335681.45.0.289082897432.issue17120@roundup.psfhosted.org>
2021-08-30 15:01:21vstinnerlinkissue17120 messages
2021-08-30 15:01:21vstinnercreate