1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

fix build on FreeBSD 10.

This commit is contained in:
Munechika SUMIKAWA 2013-12-20 18:07:23 +00:00
parent 061835a1f9
commit ca943766a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337053
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- lib/cfparse.y- 2013-12-21 11:29:53.328819029 +0900
+++ lib/cfparse.y 2013-12-21 11:30:25.058283579 +0900
@@ -1712,7 +1712,7 @@
int n;
char *bp;
struct cf_list *new;
- rcf_t type;
+ rc_type type;
n = strtoll(str, &bp, 10);

View File

@ -0,0 +1,20 @@
--- lib/cftoken.l- 2013-12-21 11:31:18.701191439 +0900
+++ lib/cftoken.l 2013-12-21 11:33:51.653300338 +0900
@@ -53,7 +53,7 @@
extern int yyget_lineno (void);
extern FILE *yyget_in (void);
extern FILE *yyget_out (void);
-extern int yyget_leng (void);
+extern yy_size_t yyget_leng (void);
extern char *yyget_text (void);
extern void yyset_lineno (int);
extern void yyset_in (FILE *);
@@ -78,7 +78,7 @@
if (cf_debug) { \
fprintf(CF_ERRDEV, "%s:%d:%d[%s] len=%d\n", \
rcf_istk[rcf_istkp].path, rcf_istk[rcf_istkp].lineno, \
- yy_start, yytext, yyleng); \
+ yy_start, yytext, (int)yyleng); \
}
#else
#define DP