diff --git a/dports/lang/python33/Portfile b/dports/lang/python33/Portfile
index b6f433d..a80c028 100644
a
|
b
|
name python33 |
8 | 8 | |
9 | 9 | # Remember to keep py33-tkinter and py33-gdbm's versions sync'd with this |
10 | 10 | version 3.3.6 |
11 | | revision 6 |
| 11 | revision 7 |
12 | 12 | |
13 | 13 | epoch 20141012 |
14 | 14 | |
… |
… |
patchfiles patch-setup.py.diff \ |
40 | 40 | patch-configure.diff \ |
41 | 41 | patch-setup.py-disabled_modules.diff \ |
42 | 42 | patch-libedit.diff \ |
43 | | omit-local-site-packages.patch |
| 43 | omit-local-site-packages.patch \ |
| 44 | patch-Include-pyport.h.diff |
44 | 45 | |
45 | 46 | # http://bugs.python.org/issue21811 |
46 | 47 | patchfiles-append yosemite-configure-fixes.patch \ |
diff --git a/dports/lang/python33/files/patch-Include-pyport.h.diff b/dports/lang/python33/files/patch-Include-pyport.h.diff
new file mode 100644
index 0000000..33c6484
-
|
+
|
|
| 1 | --- Include/pyport.h.old 2014-10-12 09:03:52.000000000 +0200 |
| 2 | +++ Include/pyport.h 2016-08-01 06:48:34.000000000 +0200 |
| 3 | @@ -697,6 +697,12 @@ extern pid_t forkpty(int *, char *, stru |
| 4 | #endif |
| 5 | |
| 6 | #ifdef _PY_PORT_CTYPE_UTF8_ISSUE |
| 7 | +#ifndef __cplusplus |
| 8 | + /* The workaround below is unsafe in C++ because |
| 9 | + * the <locale> defines these symbols as real functions, |
| 10 | + * with a slightly different signature. |
| 11 | + * See issue #10910 |
| 12 | + */ |
| 13 | #include <ctype.h> |
| 14 | #include <wctype.h> |
| 15 | #undef isalnum |
| 16 | @@ -714,6 +720,7 @@ extern pid_t forkpty(int *, char *, stru |
| 17 | #undef toupper |
| 18 | #define toupper(c) towupper(btowc(c)) |
| 19 | #endif |
| 20 | +#endif |
| 21 | |
| 22 | |
| 23 | /* Declarations for symbol visibility. |