Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14d098d

Browse files
author
Victor Stinner
committed
Issue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008
configure: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008 functions on OpenBSD (e.g. fdopendir).
1 parent 3d5881e commit 14d098d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,9 @@ Library
12091209
Build
12101210
-----
12111211

1212+
- Issue #12852: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008
1213+
functions on OpenBSD (e.g. fdopendir).
1214+
12121215
- Issue #11863: Remove support for legacy systems deprecated in Python 3.2
12131216
(following PEP 11). These systems are systems using Mach C Threads,
12141217
SunOS lightweight processes, GNU pth threads and IRIX threads.

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3140,8 +3140,9 @@ esac
31403140

31413141
if test $define_xopen_source = yes
31423142
then
3143+
# X/Open 7, incorporating POSIX.1-2008
31433144

3144-
$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3145+
$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
31453146

31463147

31473148
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires

configure.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ esac
397397

398398
if test $define_xopen_source = yes
399399
then
400-
AC_DEFINE(_XOPEN_SOURCE, 600,
400+
# X/Open 7, incorporating POSIX.1-2008
401+
AC_DEFINE(_XOPEN_SOURCE, 700,
401402
Define to the level of X/Open that your system supports)
402403

403404
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires

0 commit comments

Comments
 (0)