diff options
author | marino <marino@FreeBSD.org> | 2015-05-01 22:11:05 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2015-05-01 22:11:05 +0800 |
commit | f5870131f01479ab1f704848d842ea09bb5ac7d1 (patch) | |
tree | 5a34f54ffecbf90680f9fb94bfb9ee2fd11594f0 /games/lincity | |
parent | d168a59ab431dfba049c9da8aa6293369608601e (diff) | |
download | freebsd-ports-gnome-f5870131f01479ab1f704848d842ea09bb5ac7d1.tar.gz freebsd-ports-gnome-f5870131f01479ab1f704848d842ea09bb5ac7d1.tar.zst freebsd-ports-gnome-f5870131f01479ab1f704848d842ea09bb5ac7d1.zip |
games/lincity: Fix build on gcc5
GCC5 doesn't like it when static variables are used inside inline
functions.
Diffstat (limited to 'games/lincity')
-rw-r--r-- | games/lincity/files/patch-mouse.c | 29 |
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 */ |