Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ifdef to check for __GLIBC__ instead of __linux__ to prevent errors when building under other libc's #1958

Merged
merged 2 commits into from
Dec 17, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pdns/receiver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static void loadModules()
}
}

#ifdef __linux__
#ifdef __GLIBC__
#include <execinfo.h>
static void tbhandler(int num)
{
Expand Down Expand Up @@ -405,7 +405,7 @@ int main(int argc, char **argv)
s_programname="pdns";
s_starttime=time(0);

#ifdef __linux__
#ifdef __GLIBC__
signal(SIGSEGV,tbhandler);
signal(SIGFPE,tbhandler);
signal(SIGABRT,tbhandler);
Expand Down Expand Up @@ -470,7 +470,7 @@ int main(int argc, char **argv)

// we really need to do work - either standalone or as an instance

#ifdef __linux__
#ifdef __GLIBC__
if(!::arg().mustDo("traceback-handler")) {
L<<Logger::Warning<<"Disabling traceback handler"<<endl;
signal(SIGSEGV,SIG_DFL);
Expand Down