]> granicus.if.org Git - python/commitdiff
Issue #10910: Update FreedBSD version checks for the ctype UTF-8 workaround.
authorNed Deily <nad@python.org>
Mon, 15 Aug 2016 07:04:36 +0000 (03:04 -0400)
committerNed Deily <nad@python.org>
Mon, 15 Aug 2016 07:04:36 +0000 (03:04 -0400)
The original problem has been fixed in newer versions of FreeBSD.
Patch by Dimitry Andric of the FreeBSD project.

Include/pyport.h
Misc/NEWS

index 736b984e056a29bed3fa51b56de0d217ba7b981f..0c78a1e5b668d3b6dd574cdb38834847ec7c685b 100644 (file)
@@ -702,7 +702,9 @@ extern int fdatasync(int);
 
 #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
index 4a232707d2768cd7b24d018e7869babbddac7731..b9d473499d36e56b7239acdbb5e8d21aab210cfc 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,13 @@ Tests
 - Issue #27369: In test_pyexpat, avoid testing an error message detail that
   changed in Expat 2.2.0.
 
+Build
+-----
+
+- Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X.
+  Also update FreedBSD version checks for the original ctype UTF-8 workaround.
+
+
 What's New in Python 2.7.12?
 ============================