aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/python27/fix-datetime.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/python27/fix-datetime.patch')
-rw-r--r--tools/depends/target/python27/fix-datetime.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/depends/target/python27/fix-datetime.patch b/tools/depends/target/python27/fix-datetime.patch
new file mode 100644
index 0000000000..831c69d964
--- /dev/null
+++ b/tools/depends/target/python27/fix-datetime.patch
@@ -0,0 +1,18 @@
+--- Modules/_testcapimodule.c.orig 2015-10-07 16:50:38.751087989 +0200
++++ Modules/_testcapimodule.c 2015-10-07 16:50:59.119088070 +0200
+@@ -8,8 +8,14 @@
+ #include "Python.h"
+ #include <float.h>
+ #include "structmember.h"
+-#include "datetime.h"
+ #include "marshal.h"
++#ifdef Py_BUILD_CORE
++#undef Py_BUILD_CORE
++#include "datetime.h"
++#define Py_BUILD_CORE
++#else
++#include "datetime.h"
++#endif
+
+ #ifdef WITH_THREAD
+ #include "pythread.h"