python3: handle negative errno on Haiku.

also enable _BSD_SOURCE for openpty declaration.
This commit is contained in:
Jerome Duval
2017-04-16 21:33:04 +02:00
parent 2e9a42ccdf
commit 2411c135d9
2 changed files with 42 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ OSI-approved open source license.
HOMEPAGE="http://www.python.org"
LICENSE="Python"
COPYRIGHT="1990-2016, Python Software Foundation"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="a01810ddfcec216bcdb357a84bfaafdfaa0ca42bbdaa4cb7ff74f5a9961e4041"
SOURCE_DIR="Python-$portVersion"
@@ -87,6 +87,7 @@ GLOBAL_WRITABLE_FILES="
BUILD()
{
export CFLAGS="-D_BSD_SOURCE"
rm -Rf Modules/zlib Modules/expat
cd Modules/_ctypes/libffi