diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-04-25 20:22:19 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-04-25 20:22:19 +0000 |
| commit | 3ab35818fcec73172595ca5b727ca3dd7bd3c032 (patch) | |
| tree | 7e7c326704e82b486d5e8f428a82ca99c405a319 /lang/python35/files/patch-Include__pyport.h | |
| parent | - Update to 0.11.9 (diff) | |
For the various lang/python* ports, improve the __FreeBSD_version
check in pyport.h for working around a very old ctype issue.
If the workaround for this issue is enabled, pyport.h redefines
toupper() and some other ctype macros, and this wreaks havoc when
including newer libc++ headers (or any other system header which tries
to declare those functions).
Approved by: portmgr (antoine)
PR: 208486
MFH: 2016Q2
Notes
Notes:
svn path=/head/; revision=414029
Diffstat (limited to 'lang/python35/files/patch-Include__pyport.h')
| -rw-r--r-- | lang/python35/files/patch-Include__pyport.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python35/files/patch-Include__pyport.h b/lang/python35/files/patch-Include__pyport.h new file mode 100644 index 000000000000..b0d54e32a47c --- /dev/null +++ b/lang/python35/files/patch-Include__pyport.h @@ -0,0 +1,13 @@ +--- Include/pyport.h.orig 2015-12-07 02:39:07.000000000 +0100 ++++ Include/pyport.h 2016-04-03 19:31:36.801717000 +0200 +@@ -677,7 +677,9 @@ + + #ifdef __FreeBSD__ + #include <osreldate.h> +-#if __FreeBSD_version > 500039 ++#if (__FreeBSD_version >= 500040 && __FreeBSD_version < 602113) || \ ++ (__FreeBSD_version >= 700000 && __FreeBSD_version < 700054) || \ ++ (__FreeBSD_version >= 800000 && __FreeBSD_version < 800001) + # define _PY_PORT_CTYPE_UTF8_ISSUE + #endif + #endif |
