summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-04 10:02:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-04 10:11:16 +0100
commit7d697c7e22108035ef73a903dfc024b2b948b419 (patch)
tree2480f3b100622775a41c46b27cee5bf552c62d7e /external
parent69ae92100401aad31cbfe1c4b4247befffb2d80a (diff)
external/python33: adapt to -Werror,-Wundef being enabled for clang-cl
Change-Id: I82bedca98ed5ec22b434c7b25c87bf5d77e7ed21
Diffstat (limited to 'external')
-rw-r--r--external/python33/UnpackedTarball_python3.mk1
-rwxr-xr-xexternal/python33/clang-cl.patch.011
2 files changed, 12 insertions, 0 deletions
diff --git a/external/python33/UnpackedTarball_python3.mk b/external/python33/UnpackedTarball_python3.mk
index 1579be9a5f05..d5db8b45c052 100644
--- a/external/python33/UnpackedTarball_python3.mk
+++ b/external/python33/UnpackedTarball_python3.mk
@@ -35,6 +35,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,python3,\
external/python33/python-msvc-disable-sse2.patch.1 \
external/python33/python-lsan.patch.0 \
external/python33/ubsan.patch.0 \
+ external/python33/clang-cl.patch.0 \
))
ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD SOLARIS,$(OS)),)
diff --git a/external/python33/clang-cl.patch.0 b/external/python33/clang-cl.patch.0
new file mode 100755
index 000000000000..68f1dcd84a95
--- /dev/null
+++ b/external/python33/clang-cl.patch.0
@@ -0,0 +1,11 @@
+--- Include/pyport.h
++++ Include/pyport.h
+@@ -219,7 +219,7 @@
+ /* Smallest negative value of type Py_ssize_t. */
+ #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
+
+-#if SIZEOF_PID_T > SIZEOF_LONG
++#if defined SIZEOF_PID_T && SIZEOF_PID_T > SIZEOF_LONG
+ # error "Python doesn't support sizeof(pid_t) > sizeof(long)"
+ #endif
+