From 4b587bc5a1a25a285c614ae772f0896d65954ad9 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 15 Mar 2017 15:42:02 +0100 Subject: [PATCH] Fix dns_random unit tests with gcc > 4 --- pdns/recursordist/Makefile.am | 1 + pdns/test-dns_random_hh.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pdns/recursordist/Makefile.am b/pdns/recursordist/Makefile.am index c1738df56..fec6d98ef 100644 --- a/pdns/recursordist/Makefile.am +++ b/pdns/recursordist/Makefile.am @@ -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 \ diff --git a/pdns/test-dns_random_hh.cc b/pdns/test-dns_random_hh.cc index dfa77ef20..1dda1ade7 100644 --- a/pdns/test-dns_random_hh.cc +++ b/pdns/test-dns_random_hh.cc @@ -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" -- 2.40.0