]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix dns_random unit tests with gcc > 4 5157/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 15 Mar 2017 14:42:02 +0000 (15:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 15 Mar 2017 14:42:02 +0000 (15:42 +0100)
pdns/recursordist/Makefile.am
pdns/test-dns_random_hh.cc

index c1738df56fc1ddad3a135173e3472e72d2343f63..fec6d98efc792a19ff63bf1d4afff0f1e0f88133 100644 (file)
@@ -181,6 +181,7 @@ testrunner_SOURCES = \
        dnslabeltext.cc \
        dnsname.cc dnsname.hh \
        dnsparser.hh dnsparser.cc \
+       dns_random.cc dns_random.hh \
        dnsrecords.cc \
        dnssecinfra.cc \
        dnswriter.cc dnswriter.hh \
index dfa77ef20f37105f9e6b23357c27cb4b9188e970..1dda1ade7d26f34384912f5f9174c8414de3603a 100644 (file)
@@ -2,7 +2,7 @@
 #define BOOST_TEST_NO_MAIN
 
 // Disable this code for gcc 4.8 and lower
-#if (__GNUC__ == 4 && __GNUC_MINOR__ > 8) || !__GNUC__
+#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 8) || !__GNUC__
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"