tags 778074 + patch
thanks

Here's a patch for the GCC 5 build issue.

Sorry, I'm not sure how best to send patches for packages using quilt.

BTW, it seems this issue is no longer present upstream:
  svn ls svn://svn.code.sf.net/p/opalvoip/code/ptlib/trunk/include/ptlib/ | 
grep crit
It seems this is properly handled in configure now.

-- 
Martin Michlmayr
Linux for HP Helion OpenStack, Hewlett-Packard
diff -urN a/debian/patches/gcc-5_support b/debian/patches/gcc-5_support
--- a/debian/patches/gcc-5_support	1970-01-01 00:00:00.000000000 +0000
+++ b/debian/patches/gcc-5_support	2015-06-25 17:20:02.000000000 +0000
@@ -0,0 +1,13 @@
+Index: ptlib-2.10.10~dfsg/include/ptlib/critsec.h
+===================================================================
+--- ptlib-2.10.10~dfsg.orig/include/ptlib/critsec.h
++++ ptlib-2.10.10~dfsg/include/ptlib/critsec.h
+@@ -40,7 +40,7 @@
+ #if P_HAS_ATOMIC_INT
+ 
+ #if defined(__GNUC__)
+-#  if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
++#  if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2) || __GNUC__ >= 5
+ #     include <ext/atomicity.h>
+ #  else
+ #     include <bits/atomicity.h>
diff -urN a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series	2014-10-08 02:18:13.000000000 +0000
+++ b/debian/patches/series	2015-06-25 17:19:36.000000000 +0000
@@ -1,3 +1,4 @@
 hurd-fix
 bison-fix
 ppc64el-arm64-mips64.diff
+gcc-5_support

Reply via email to