games/crossfire-server: Unbreak on FreeBSD10+ (taken from dports)

This commit is contained in:
John Marino 2014-02-05 22:53:23 +00:00
parent 6a6744298f
commit aa56424e50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342884
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- common/loader.c.orig 2012-03-19 05:14:09.000000000 +0000
+++ common/loader.c
@@ -2898,7 +2898,7 @@ FILE *yyget_out (void );
void yyset_out (FILE * out_str );
-int yyget_leng (void );
+size_t yyget_leng (void );
char *yyget_text (void );
@@ -5523,7 +5523,7 @@ FILE *yyget_out (void)
/** Get the length of the current token.
*
*/
-int yyget_leng (void)
+size_t yyget_leng (void)
{
return yyleng;
}

View file

@ -0,0 +1,11 @@
--- include/libproto.h.orig 2012-03-18 06:31:46.000000000 +0000
+++ include/libproto.h
@@ -441,7 +441,7 @@ extern void yypop_buffer_state(void);
extern int yyget_lineno(void);
extern FILE *yyget_in(void);
extern FILE *yyget_out(void);
-extern int yyget_leng(void);
+extern size_t yyget_leng(void);
extern char *yyget_text(void);
extern void yyset_lineno(int line_number);
extern void yyset_in(FILE *in_str);