aboutsummaryrefslogtreecommitdiff
path: root/games/lincity
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-05-01 14:11:05 +0000
committerJohn Marino <marino@FreeBSD.org>2015-05-01 14:11:05 +0000
commitffa19696fbf04e9fbbd050aede466bc8ce0daea4 (patch)
tree5a34f54ffecbf90680f9fb94bfb9ee2fd11594f0 /games/lincity
parent821b92860ba5c4297df87d8def293292b9063d5e (diff)
downloadports-ffa19696fbf04e9fbbd050aede466bc8ce0daea4.tar.gz
ports-ffa19696fbf04e9fbbd050aede466bc8ce0daea4.zip
games/lincity: Fix build on gcc5
GCC5 doesn't like it when static variables are used inside inline functions.
Notes
Notes: svn path=/head/; revision=385113
Diffstat (limited to 'games/lincity')
-rw-r--r--games/lincity/files/patch-mouse.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/games/lincity/files/patch-mouse.c b/games/lincity/files/patch-mouse.c
new file mode 100644
index 000000000000..2d7d88210dce
--- /dev/null
+++ b/games/lincity/files/patch-mouse.c
@@ -0,0 +1,29 @@
+--- mouse.c.orig 2004-07-03 08:03:17 UTC
++++ mouse.c
+@@ -1057,7 +1057,7 @@ choose_residence (void)
+ and set to 1 if the existing transport if the more expensive sort
+ (e.g. GROUP_RAIL when overwriting GROUP_ROAD).
+ */
+-inline int
++int
+ mt_erase(int x, int y)
+ {
+ if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
+@@ -1094,7 +1094,7 @@ mt_erase(int x, int y)
+ return 0;
+ }
+
+-inline int
++int
+ mt_temp(int x, int y)
+ {
+ if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN)
+@@ -1128,7 +1128,7 @@ mt_temp(int x, int y)
+ return 0;
+ }
+
+-inline int
++int
+ mt_perm(int x, int y)
+ {
+ /* By now, it has already been mt_erase()'d */