Gentoo Archives: gentoo-commits

From: "Sven Wegener (swegener)" <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/pdns-recursor/files: pdns-recursor-3.1.4-gcc42.patch
Date: Sat, 22 Sep 2007 19:42:12
Message-Id: E1IZAjt-0006CL-BW@stork.gentoo.org
1 swegener 07/09/22 19:34:05
2
3 Added: pdns-recursor-3.1.4-gcc42.patch
4 Log:
5 Fix compilation with gcc-4.2, bug #185602.
6 (Portage version: 2.1.3.9)
7
8 Revision Changes Path
9 1.1 net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/pdns-recursor/files/pdns-recursor-3.1.4-gcc42.patch?rev=1.1&content-type=text/plain
13
14 Index: pdns-recursor-3.1.4-gcc42.patch
15 ===================================================================
16 --- pdns/recursor_cache.cc
17 +++ pdns/recursor_cache.cc
18 @@ -11,7 +11,10 @@
19 #include "config.h"
20
21 #ifdef GCC_SKIP_LOCKING
22 -#include <bits/atomicity.h>
23 +#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 2))
24 +# include <ext/atomicity.h>
25 +#else
26 +# include <bits/atomicity.h>
27 // This code is ugly but does speedup the recursor tremendously on multi-processor systems, and even has a large effect (20, 30%) on uniprocessor
28 namespace __gnu_cxx
29 {
30 @@ -32,6 +35,7 @@
31 }
32 }
33 #endif
34 +#endif
35
36 string simpleCompress(const string& label)
37 {
38
39
40
41 --
42 gentoo-commits@g.o mailing list