summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg>2013-10-10 00:09:37 +0000
committerjoerg <joerg>2013-10-10 00:09:37 +0000
commitd3e68e317cef3c3b3feeddf58f8866d0836a342a (patch)
tree0baad02e95b122484c7be21696ee0a5b8d9fee5f /security
parent7d413bab0c1e2252cb3d3694a1db52fac6877a8a (diff)
downloadpkgsrc-d3e68e317cef3c3b3feeddf58f8866d0836a342a.tar.gz
Fix build with modernish flex.
Diffstat (limited to 'security')
-rw-r--r--security/racoon2/distinfo3
-rw-r--r--security/racoon2/patches/patch-lib_cftoken.l24
2 files changed, 26 insertions, 1 deletions
diff --git a/security/racoon2/distinfo b/security/racoon2/distinfo
index 2ddd96031fc..ef7d92e44d4 100644
--- a/security/racoon2/distinfo
+++ b/security/racoon2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2013/03/29 13:52:45 joerg Exp $
+$NetBSD: distinfo,v 1.4 2013/10/10 00:09:37 joerg Exp $
SHA1 (racoon2-20100526a.tgz) = 268429af8a031dbbc279580cf98ea18331f0e2d9
RMD160 (racoon2-20100526a.tgz) = 014cdcf78cc82ab21235a21491850cdcd1f883bf
@@ -10,4 +10,5 @@ SHA1 (patch-ad) = 0d04dc7027c100de6bc04db00eddb30a12fd8715
SHA1 (patch-ae) = 937cf84a2b6f1e8f8d288703a0556faf500bab95
SHA1 (patch-lib_cfparse.y) = 9e0b8ec9c09c315edde171103b97a8c403ba748e
SHA1 (patch-lib_cfsetup.c) = 70c2409bc69ff85cef6d2e2b4e222e12537c323e
+SHA1 (patch-lib_cftoken.l) = 1cbae5bd9199e204d12d5a5216521a21e55a84dc
SHA1 (patch-lib_if__pfkeyv2.c) = 9eb969ff0f289bc7c4aa1fa234c221b4d70d1da7
diff --git a/security/racoon2/patches/patch-lib_cftoken.l b/security/racoon2/patches/patch-lib_cftoken.l
new file mode 100644
index 00000000000..aed34bbfc0f
--- /dev/null
+++ b/security/racoon2/patches/patch-lib_cftoken.l
@@ -0,0 +1,24 @@
+$NetBSD: patch-lib_cftoken.l,v 1.1 2013/10/10 00:09:38 joerg Exp $
+
+--- lib/cftoken.l.orig 2013-10-09 23:00:24.000000000 +0000
++++ lib/cftoken.l
+@@ -53,7 +53,6 @@
+ extern int yyget_lineno (void);
+ extern FILE *yyget_in (void);
+ extern FILE *yyget_out (void);
+-extern int yyget_leng (void);
+ extern char *yyget_text (void);
+ extern void yyset_lineno (int);
+ extern void yyset_in (FILE *);
+@@ -76,9 +75,9 @@ static char rcf_linebuf[CF_LINEBUFSIZE];
+ #define YYDEBUG 1
+ #define DP \
+ if (cf_debug) { \
+- fprintf(CF_ERRDEV, "%s:%d:%d[%s] len=%d\n", \
++ fprintf(CF_ERRDEV, "%s:%d:%d[%s] len=%zu\n", \
+ rcf_istk[rcf_istkp].path, rcf_istk[rcf_istkp].lineno, \
+- yy_start, yytext, yyleng); \
++ yy_start, yytext, (size_t)yyleng); \
+ }
+ #else
+ #define DP