pkgsrc/net/ns/patches/patch-common_packet.cc
dholland a46ef07617 Restore patches to configure script lost in an update some time back.
Does not fix the build, but advances it; now it's having some kind
of bizarre problem with <sys/queue.h>.

While here, add three small patches to silence a large pile of const
warnings that made it impossible to see anything else that was going
on.
2012-09-29 06:17:29 +00:00

15 lines
407 B
C++

$NetBSD: patch-common_packet.cc,v 1.1 2012/09/29 06:17:30 dholland Exp $
Suppress immensely noisy const warnings.
--- common/packet.cc~ 2008-04-01 02:00:25.000000000 +0000
+++ common/packet.cc
@@ -41,7 +41,7 @@ static const char rcsid[] =
#include "flags.h"
p_info packet_info;
-char** p_info::name_;
+const char** p_info::name_;
unsigned int p_info::nPkt_ = 0;
PacketClassifier *p_info::pc_ = 0;