summaryrefslogtreecommitdiff
path: root/games/tuxmath/files/patch-src_setup.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-26 11:29:06 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-26 11:29:06 +0000
commit2ae264e63b92e1726b7c1c8f9e79463361a01111 (patch)
treecc2e191b826d30982b041e8c5ed562efd6139575 /games/tuxmath/files/patch-src_setup.c
parentAdd missing run time dependencies (diff)
Fix build with -fno-common
While here fix a few portlint and portclippy complaints
Diffstat (limited to 'games/tuxmath/files/patch-src_setup.c')
-rw-r--r--games/tuxmath/files/patch-src_setup.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/tuxmath/files/patch-src_setup.c b/games/tuxmath/files/patch-src_setup.c
new file mode 100644
index 000000000000..4ccbf469db53
--- /dev/null
+++ b/games/tuxmath/files/patch-src_setup.c
@@ -0,0 +1,11 @@
+--- src/setup.c.orig 2011-05-04 00:15:43 UTC
++++ src/setup.c
+@@ -64,7 +64,7 @@ along with this program. If not, see <http://www.gnu.
+ /* (These are now 'extern'd in "tuxmath.h") */
+
+
+-SDL_Surface* screen;
++extern SDL_Surface* screen;
+ SDL_Surface* images[NUM_IMAGES];
+ sprite* sprites[NUM_SPRITES];
+ /* Need special handling to generate flipped versions of images. This