From: Fred Morcos Date: Mon, 6 Nov 2023 09:18:16 +0000 (+0100) Subject: Cleanup calidns.cc #ifdef X-Git-Tag: rec-5.0.0-rc1~23^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d35690ddbcd33510a0db16ca99ae093493066f26;p=thirdparty%2Fpdns.git Cleanup calidns.cc #ifdef --- diff --git a/pdns/calidns.cc b/pdns/calidns.cc index c852115dd4..dbfdbd65c2 100644 --- a/pdns/calidns.cc +++ b/pdns/calidns.cc @@ -72,7 +72,7 @@ static void recvThread(const std::shared_ptr int err; -#if HAVE_RECVMMSG +#ifdef HAVE_RECVMMSG vector buf(100); for(auto& m : buf) { cmsgbuf_aligned *cbuf = new cmsgbuf_aligned; @@ -96,7 +96,7 @@ static void recvThread(const std::shared_ptr for(auto &pfd : fds) { if (pfd.revents & POLLIN) { -#if HAVE_RECVMMSG +#ifdef HAVE_RECVMMSG if ((err=recvmmsg(pfd.fd, &buf[0], buf.size(), MSG_WAITFORONE, 0)) < 0 ) { if(errno != EAGAIN) unixDie("recvmmsg"); @@ -384,7 +384,7 @@ try struct sched_param param; param.sched_priority=99; -#if HAVE_SCHED_SETSCHEDULER +#ifdef HAVE_SCHED_SETSCHEDULER if(sched_setscheduler(0, SCHED_FIFO, ¶m) < 0) { if (!g_quiet) { cerr<<"Unable to set SCHED_FIFO: "<