From: James Taylor Date: Wed, 3 Jul 2019 10:31:19 +0000 (+1000) Subject: auth: correct syntax for GLIBC detection X-Git-Tag: auth-4.2.0-rc3~19^2~5^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87c8a3de14478c3641b6e1a36a12eba785803c81;p=pdns auth: correct syntax for GLIBC detection This commit fixes invalid syntax introduced in #7980 which caused build failures on some platforms (cherry picked from commit 331d3d27ba270d5124ee4466decc4dcbc0b406b6) --- diff --git a/pdns/receiver.cc b/pdns/receiver.cc index 209db7af8..c7b2af93e 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -354,7 +354,7 @@ static int guardian(int argc, char **argv) } } -#ifdef __GLIBC__ && !defined(__UCLIBC__) +#if defined(__GLIBC__) && !defined(__UCLIBC__) #include static void tbhandler(int num) { @@ -386,7 +386,7 @@ int main(int argc, char **argv) s_programname="pdns"; s_starttime=time(0); -#ifdef __GLIBC__ && !defined(__UCLIBC__) +#if defined(__GLIBC__) && !defined(__UCLIBC__) signal(SIGSEGV,tbhandler); signal(SIGFPE,tbhandler); signal(SIGABRT,tbhandler); @@ -450,7 +450,7 @@ int main(int argc, char **argv) // we really need to do work - either standalone or as an instance -#ifdef __GLIBC__ && !defined(__UCLIBC__) +#if defined(__GLIBC__) && !defined(__UCLIBC__) if(!::arg().mustDo("traceback-handler")) { g_log<