ace: fix the build with -fno-common

OK jsg@
This commit is contained in:
cwen 2021-01-31 16:45:21 +00:00
parent 0696916a1c
commit f846381c4d
2 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2019/10/02 21:11:08 cwen Exp $
# $OpenBSD: Makefile,v 1.6 2021/01/31 16:45:21 cwen Exp $
COMMENT = solitaire games
DISTNAME = ace-1.4
REVISION = 1
REVISION = 2
SHARED_LIBS += cards 0.0 # 1.0

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-lib_table_c,v 1.1 2021/01/31 16:45:21 cwen Exp $
Fix the build with -fno-common
Index: lib/table.c
--- lib/table.c.orig
+++ lib/table.c
@@ -57,7 +57,7 @@ static int ex=0, ey=0, ew=0, eh=0;
static int graphics_disabled = 1;
OptionDesc *app_options;
-OptionDesc *xwin_options;
+extern OptionDesc *xwin_options;
static OptionDesc *options[5];
static OptionDesc ace_options[] = {