From 7d697c7e22108035ef73a903dfc024b2b948b419 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 4 Mar 2016 10:02:23 +0100 Subject: external/python33: adapt to -Werror,-Wundef being enabled for clang-cl Change-Id: I82bedca98ed5ec22b434c7b25c87bf5d77e7ed21 --- external/python33/UnpackedTarball_python3.mk | 1 + external/python33/clang-cl.patch.0 | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100755 external/python33/clang-cl.patch.0 (limited to 'external') 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 + -- cgit