aboutsummaryrefslogtreecommitdiff
path: root/games/crossfire-server
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-02-05 22:53:23 +0000
committerJohn Marino <marino@FreeBSD.org>2014-02-05 22:53:23 +0000
commitaa56424e507aa11283d5e9cbd2aac23f32f75606 (patch)
tree2d1fa0b1e3cc696c913d7f4a3da43d06f14a0d93 /games/crossfire-server
parent6a6744298f8778e1a49d8d02d6b41509ad7fd694 (diff)
downloadports-aa56424e507aa11283d5e9cbd2aac23f32f75606.tar.gz
ports-aa56424e507aa11283d5e9cbd2aac23f32f75606.zip
games/crossfire-server: Unbreak on FreeBSD10+ (taken from dports)
Notes
Notes: svn path=/head/; revision=342884
Diffstat (limited to 'games/crossfire-server')
-rw-r--r--games/crossfire-server/files/patch-common_loader.c20
-rw-r--r--games/crossfire-server/files/patch-include_libproto.h11
2 files changed, 31 insertions, 0 deletions
diff --git a/games/crossfire-server/files/patch-common_loader.c b/games/crossfire-server/files/patch-common_loader.c
new file mode 100644
index 000000000000..3e9bfedc0d80
--- /dev/null
+++ b/games/crossfire-server/files/patch-common_loader.c
@@ -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;
+ }
diff --git a/games/crossfire-server/files/patch-include_libproto.h b/games/crossfire-server/files/patch-include_libproto.h
new file mode 100644
index 000000000000..7fbc97f827dc
--- /dev/null
+++ b/games/crossfire-server/files/patch-include_libproto.h
@@ -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);