1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

dns/dnsdist: unbreak with boost 1.70

dnsdist-lua-vars.cc:99:61: error: expected unqualified-id
                                       {"BADSIG",   ERCode::BADSIG  },
                                                            ^
/usr/include/sys/signal.h:490:17: note: expanded from macro 'BADSIG'
#define BADSIG          SIG_ERR
                        ^
/usr/include/sys/signal.h:139:18: note: expanded from macro 'SIG_ERR'
#define SIG_ERR         ((__sighandler_t *)-1)
                        ^

PR:		236587
Reported by:	jbeich
This commit is contained in:
Carlos J. Puga Medina 2019-03-17 11:38:01 +00:00
parent fdee202bdf
commit dae289f3ca
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496048
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= dnsdist
DISTVERSION= 1.3.3
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= dns net
MASTER_SITES= https://downloads.powerdns.com/releases/ \
LOCAL/cpm

View File

@ -0,0 +1,11 @@
--- dnsdist-lua-vars.cc.orig 2018-10-03 09:48:10 UTC
+++ dnsdist-lua-vars.cc
@@ -22,6 +22,8 @@
#include "dnsdist.hh"
#include "ednsoptions.hh"
+#undef BADSIG // signal.h SIG_ERR
+
void setupLuaVars()
{
g_lua.writeVariable("DNSAction", std::unordered_map<string,int>{