games/sdlroids: fix build with -fno-common

This commit is contained in:
naddy 2021-02-15 16:47:31 +00:00
parent d4f3b5b551
commit 0ef24f0fc9
2 changed files with 13 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.21 2019/07/12 21:02:21 sthen Exp $
# $OpenBSD: Makefile,v 1.22 2021/02/15 16:47:31 naddy Exp $
COMMENT= essentially an Asteroids clone
DISTNAME= sdlroids-1.3.4
REVISION = 2
REVISION = 3
CATEGORIES= games
HOMEPAGE= http://sourceforge.net/projects/sdlroids/

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-getargs_h,v 1.1 2021/02/15 16:47:31 naddy Exp $
Index: getargs.h
--- getargs.h.orig
+++ getargs.h
@@ -37,4 +37,4 @@
/* getargs() prototype */
void getargs(int, char *[]);
-int flagargs[NUMARGS];
+extern int flagargs[NUMARGS];