Skip to content

Commit 1f34602

Browse files
committed
pythongh-144309: Build Python with POSIX 2024
On FreeBSD, the ppoll() function is only visible if the POSIX version is 2024 or newer.
1 parent 8fe8a94 commit 1f34602

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Build Python with POSIX 2024, instead of POSIX 2008. Patch by Victor Stinner.

configure

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

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,8 @@ esac
916916

917917
if test $define_xopen_source = yes
918918
then
919-
# X/Open 7, incorporating POSIX.1-2008
920-
AC_DEFINE([_XOPEN_SOURCE], [700],
919+
# X/Open 8, incorporating POSIX.1-2024
920+
AC_DEFINE([_XOPEN_SOURCE], [800],
921921
[Define to the level of X/Open that your system supports])
922922

923923
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
@@ -927,8 +927,8 @@ then
927927
AC_DEFINE([_XOPEN_SOURCE_EXTENDED], [1],
928928
[Define to activate Unix95-and-earlier features])
929929

930-
AC_DEFINE([_POSIX_C_SOURCE], [200809L],
931-
[Define to activate features from IEEE Stds 1003.1-2008])
930+
AC_DEFINE([_POSIX_C_SOURCE], [202405L],
931+
[Define to activate features from IEEE Std 1003.1-2024])
932932
fi
933933

934934
# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE

pyconfig.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,7 @@
20392039
/* Define on NetBSD to activate all library features */
20402040
#undef _NETBSD_SOURCE
20412041

2042-
/* Define to activate features from IEEE Stds 1003.1-2008 */
2042+
/* Define to activate features from IEEE Std 1003.1-2024 */
20432043
#undef _POSIX_C_SOURCE
20442044

20452045
/* Define if you have POSIX threads, and your system does not define that. */

0 commit comments

Comments
 (0)