]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix dns_random unit tests with gcc > 4 5148/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 15 Mar 2017 14:42:02 +0000 (15:42 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Mar 2017 08:28:35 +0000 (09:28 +0100)
(cherry picked from commit 4b587bc5a1a25a285c614ae772f0896d65954ad9)

pdns/recursordist/Makefile.am
pdns/test-dns_random_hh.cc

index 77b43c5e2b87869294ac763488ee5b13a987446f..567aab096f0abc68740edab8a06a6f00ccfdc8d0 100644 (file)
@@ -175,6 +175,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"