Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ff36b2ce
Commit
ff36b2ce
authored
Dec 29, 2007
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
parent
35b84b41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
Misc/NEWS
Misc/NEWS
+2
-0
configure
configure
+11
-10
configure.in
configure.in
+6
-5
No files found.
Misc/NEWS
View file @
ff36b2ce
...
...
@@ -183,6 +183,8 @@ Documentation
Build
-----
-
Bug
#
1699
:
Define
_BSD_SOURCE
only
on
OpenBSD
.
-
Bug
#
1608
:
use
-
fwrapv
when
GCC
supports
it
.
This
is
important
,
newer
GCC
versions
may
optimize
away
overflow
buffer
overflow
checks
without
this
option
!
...
...
configure
View file @
ff36b2ce
#! /bin/sh
# From configure.in Revision: 59
483
.
# From configure.in Revision: 59
552
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.5.
#
...
...
@@ -1838,14 +1838,6 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
cat
>>
confdefs.h
<<
\
_ACEOF
#define _BSD_SOURCE 1
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
...
...
@@ -2012,7 +2004,16 @@ case $ac_sys_system/$ac_sys_release in
# even though select is a POSIX function. Reported by J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
OpenBSD/2.
*
|
OpenBSD/3.[0123456789]
|
OpenBSD/4.[0]
)
define_xopen_source
=
no
;;
define_xopen_source
=
no
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
# As this has a different meaning on Linux, only define it on OpenBSD
cat
>>
confdefs.h
<<
\
_ACEOF
#define _BSD_SOURCE 1
_ACEOF
;;
# Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
# _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
# Marc Recht
...
...
configure.in
View file @
ff36b2ce
...
...
@@ -50,10 +50,6 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
# them.
AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features])
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
...
...
@@ -206,7 +202,12 @@ case $ac_sys_system/$ac_sys_release in
# even though select is a POSIX function. Reported by J. Ribbens.
# Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@ | OpenBSD/4.@<:@0@:>@)
define_xopen_source=no;;
define_xopen_source=no
# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
# also defined. This can be overridden by defining _BSD_SOURCE
# As this has a different meaning on Linux, only define it on OpenBSD
AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features])
;;
# Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
# _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
# Marc Recht
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment