aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-20 21:04:49 +0800
committermarino <marino@FreeBSD.org>2015-02-20 21:04:49 +0800
commita1edb199037505e2c9ef3284442c68edba484381 (patch)
treea7724b6a397ce8bfba5c5184ca49f2fd1c3e2c92 /devel
parentb31853e8cb2e253ac446c1abbbd08d9f24279208 (diff)
downloadfreebsd-ports-gnome-a1edb199037505e2c9ef3284442c68edba484381.tar.gz
freebsd-ports-gnome-a1edb199037505e2c9ef3284442c68edba484381.tar.zst
freebsd-ports-gnome-a1edb199037505e2c9ef3284442c68edba484381.zip
devel/ptlib: Fix support for gcc-5
The ptlib port has a bug in a macro condition. The condition wants to include a different c++ header if GCC 4.1 or below is used. Since this compiler doesn't exist in ports and is ancient, I'm just going to remove the check rather than fix it. This change fixes the build for the upcoming gcc-5 release. Approved by: just-fix-it blanket
Diffstat (limited to 'devel')
-rw-r--r--devel/ptlib/files/patch-include_ptlib_critsec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/ptlib/files/patch-include_ptlib_critsec.h b/devel/ptlib/files/patch-include_ptlib_critsec.h
new file mode 100644
index 000000000000..1653c5964ed5
--- /dev/null
+++ b/devel/ptlib/files/patch-include_ptlib_critsec.h
@@ -0,0 +1,14 @@
+--- include/ptlib/critsec.h.orig 2013-02-20 02:12:17 UTC
++++ include/ptlib/critsec.h
+@@ -40,11 +40,7 @@
+ #if P_HAS_ATOMIC_INT
+
+ #if defined(__GNUC__)
+-# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
+ # include <ext/atomicity.h>
+-# else
+-# include <bits/atomicity.h>
+-# endif
+ #endif
+
+ #if P_NEEDS_GNU_CXX_NAMESPACE