summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2007-09-22 19:34:04 +0000
committerSven Wegener <swegener@gentoo.org>2007-09-22 19:34:04 +0000
commit7d9d4f29c6f276b8cdbe3fe5606f152d4c0fd227 (patch)
treec630dd4f7a350804c4455255d2195c0720046423 /net-dns/pdns-recursor/files
parentBump to 0.1.13. (diff)
downloadgentoo-2-7d9d4f29c6f276b8cdbe3fe5606f152d4c0fd227.tar.gz
gentoo-2-7d9d4f29c6f276b8cdbe3fe5606f152d4c0fd227.tar.bz2
gentoo-2-7d9d4f29c6f276b8cdbe3fe5606f152d4c0fd227.zip
Fix compilation with gcc-4.2, bug #185602.
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-dns/pdns-recursor/files')
-rw-r--r--net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch
new file mode 100644
index 000000000000..f20d25baa19a
--- /dev/null
+++ b/net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch
@@ -0,0 +1,22 @@
+--- pdns/recursor_cache.cc
++++ pdns/recursor_cache.cc
+@@ -11,7 +11,10 @@
+ #include "config.h"
+
+ #ifdef GCC_SKIP_LOCKING
+-#include <bits/atomicity.h>
++#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2))
++# include <ext/atomicity.h>
++#else
++# include <bits/atomicity.h>
+ // This code is ugly but does speedup the recursor tremendously on multi-processor systems, and even has a large effect (20, 30%) on uniprocessor
+ namespace __gnu_cxx
+ {
+@@ -32,6 +35,7 @@
+ }
+ }
+ #endif
++#endif
+
+ string simpleCompress(const string& label)
+ {