diff options
author | dholland <dholland> | 2014-06-28 20:19:41 +0000 |
---|---|---|
committer | dholland <dholland> | 2014-06-28 20:19:41 +0000 |
commit | 39abc56362ca7a3c1df418a8323b3d9dc8a06372 (patch) | |
tree | 4c04f9abae70dbd253d90bd1383e523aa48f5ee0 /net/xorp | |
parent | 6aadc47712146b0bf8f5830bb3654419c6d02849 (diff) | |
download | pkgsrc-39abc56362ca7a3c1df418a8323b3d9dc8a06372.tar.gz |
work with more lex versions (fixes build failure seen with -current)
Diffstat (limited to 'net/xorp')
-rw-r--r-- | net/xorp/distinfo | 4 | ||||
-rw-r--r-- | net/xorp/patches/patch-policy_backend_backend.l | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/net/xorp/distinfo b/net/xorp/distinfo index 05b31940324..7dd39e0d71e 100644 --- a/net/xorp/distinfo +++ b/net/xorp/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.22 2013/08/30 22:40:00 joerg Exp $ +$NetBSD: distinfo,v 1.23 2014/06/28 20:19:41 dholland Exp $ SHA1 (xorp-1.6.tar.gz) = 366d32068ed76b8ec69958b601d4fbde61ef4cbb RMD160 (xorp-1.6.tar.gz) = 32b3f6d03defc816ed983088e61b5e808de17f98 @@ -58,7 +58,7 @@ SHA1 (patch-pim_pim__bsr.hh) = a8876be2bcaac8c026dda04cd599175f5965b205 SHA1 (patch-pim_pim__mre__track__state.hh) = b470edf7c14a88d1f7fe4d7fa025c338b5012fae SHA1 (patch-pim_pim__scope__zone__table.hh) = fabc82917d4fb88c27a47409957632bfb9172d3b SHA1 (patch-pim_pim__vif.cc) = 922e9b502e8e0622efb1d63621aeec3ab2265549 -SHA1 (patch-policy_backend_backend.l) = 81491356406cc15b73233aa1eba78c51df41e4db +SHA1 (patch-policy_backend_backend.l) = 07bc0c71dafa4e3fd91e8825a3322342b60f20a7 SHA1 (patch-policy_backend_iv__exec.cc) = de92d8103c6921c6c530539aa2d3e6526bd222e2 SHA1 (patch-policy_backend_policytags.hh) = 22f31e64c162435be5de5885c56292cca5395fe9 SHA1 (patch-policy_backend_single__varrw.cc) = 84fc7c9ffdb79401fc469b46fa24f9e418d8b278 diff --git a/net/xorp/patches/patch-policy_backend_backend.l b/net/xorp/patches/patch-policy_backend_backend.l index e1036196653..37b13b489c2 100644 --- a/net/xorp/patches/patch-policy_backend_backend.l +++ b/net/xorp/patches/patch-policy_backend_backend.l @@ -1,4 +1,7 @@ -$NetBSD: patch-policy_backend_backend.l,v 1.1 2012/07/03 17:36:10 joerg Exp $ +$NetBSD: patch-policy_backend_backend.l,v 1.2 2014/06/28 20:19:41 dholland Exp $ + +- turn on no input because ... (XXX why?) +- add cast to work with more lex versions --- policy/backend/backend.l.orig 2008-08-06 08:24:59.000000000 +0000 +++ policy/backend/backend.l @@ -10,3 +13,12 @@ $NetBSD: patch-policy_backend_backend.l,v 1.1 2012/07/03 17:36:10 joerg Exp $ %option prefix="yy_policy_backend_parser" %option outfile="lex.yy_policy_backend_parser.cc" %option never-interactive +@@ -100,7 +101,7 @@ void yyerror(const char *m) + ostringstream oss; + + oss << "Error on line " << _parser_lineno << " near ("; +- for(int i = 0; i < yyleng; i++) ++ for(int i = 0; i < (int)yyleng; i++) + oss << yytext[i]; + oss << "): " << m; + |