diff options
author | obache <obache> | 2012-05-03 09:08:11 +0000 |
---|---|---|
committer | obache <obache> | 2012-05-03 09:08:11 +0000 |
commit | 1c922a94992f7edfadcb8fb06256004061e6dd22 (patch) | |
tree | bde789ec8b761e09392f62a21c8d7e1f47b0febf | |
parent | e6d89c5797802daf7bc95b0f2819c7d7d6514606 (diff) | |
download | pkgsrc-1c922a94992f7edfadcb8fb06256004061e6dd22.tar.gz |
fixes build with fiex<2.5.20, yylineno is required condifionally.
-rw-r--r-- | news/xrn/distinfo | 4 | ||||
-rw-r--r-- | news/xrn/patches/patch-rclex.l | 14 |
2 files changed, 13 insertions, 5 deletions
diff --git a/news/xrn/distinfo b/news/xrn/distinfo index 41cdd02977f..d91e5760c5d 100644 --- a/news/xrn/distinfo +++ b/news/xrn/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2012/04/16 04:33:30 dholland Exp $ +$NetBSD: distinfo,v 1.7 2012/05/03 09:08:11 obache Exp $ SHA1 (xrn/9.01.tgz) = a560d07629efaa907ae01527192dd474e11555ad RMD160 (xrn/9.01.tgz) = c98d26e17fd8c511d9272378a54943ef9a453d3a @@ -10,4 +10,4 @@ SHA1 (patch-ad) = b4b88f463cfab63500d284620fb32a6a418fd6ca SHA1 (patch-ae) = 3a1eef86f89acaa3b0bb6a78bfbd8d7c4be969d2 SHA1 (patch-af) = 849b86cac73328cf2a773bc289f97c3e21456f71 SHA1 (patch-ag) = f42c743a45c68b7702494399dbf40c3ac9cefd13 -SHA1 (patch-rclex.l) = 598c68250fa30ce166c135b0b413cf59a1ef64ca +SHA1 (patch-rclex.l) = 9fa36815375c1d389cbf286cd15a8322d7006209 diff --git a/news/xrn/patches/patch-rclex.l b/news/xrn/patches/patch-rclex.l index 0a70f13214e..c63237ff26e 100644 --- a/news/xrn/patches/patch-rclex.l +++ b/news/xrn/patches/patch-rclex.l @@ -1,12 +1,20 @@ -$NetBSD: patch-rclex.l,v 1.1 2011/12/22 00:28:20 joerg Exp $ +$NetBSD: patch-rclex.l,v 1.2 2012/05/03 09:08:11 obache Exp $ ---- rclex.l.orig 2011-12-22 00:05:52.000000000 +0000 +* yylineno is present in all scanners by flex>=2.5.20 + +--- rclex.l.orig 1997-06-05 11:11:42.000000000 +0000 +++ rclex.l -@@ -15,7 +15,6 @@ +@@ -15,7 +15,12 @@ * the Makefile from the Imakefile (with "xmkmf" or whatever else you * used the first time), and (d) trying to compile again. */ -int yylineno = 1; ++#if !defined(YY_FLEX_MAJOR_VERSION) || \ ++ (YY_FLEX_MAJOR_VERSION == 2 && (YY_FLEX_MINOR_VERSION < 5) || \ ++ (YY_FLEX_MINOR_VERSION == 5 && (!defined(YY_FLEX_SUBMINOR_VERSION) || \ ++ YY_FLEX_SUBMINOR_VERSION < 20))) ++int yylineno = 0; ++#endif #define YYLINE yylineno++ #undef yywrap #else |