aboutsummaryrefslogtreecommitdiffstats
path: root/games/crossfire-server
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-02-06 06:53:23 +0800
committermarino <marino@FreeBSD.org>2014-02-06 06:53:23 +0800
commite08162005c69b4450d4ff96e70d5344a51916ed0 (patch)
tree2d1fa0b1e3cc696c913d7f4a3da43d06f14a0d93 /games/crossfire-server
parenta2fb9a8e1cc81d5ec7b911a926b85b29b9c41425 (diff)
downloadfreebsd-ports-gnome-e08162005c69b4450d4ff96e70d5344a51916ed0.tar.gz
freebsd-ports-gnome-e08162005c69b4450d4ff96e70d5344a51916ed0.tar.zst
freebsd-ports-gnome-e08162005c69b4450d4ff96e70d5344a51916ed0.zip
games/crossfire-server: Unbreak on FreeBSD10+ (taken from dports)
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);