Add fix for -fno-common

Taken from upstream: https://github.com/Neverball/neverball/pull/198
This commit is contained in:
benoit 2021-01-30 07:00:05 +00:00
parent 7d40b29522
commit 80d4fd60ce
2 changed files with 17 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.22 2020/03/20 16:44:23 naddy Exp $
# $OpenBSD: Makefile,v 1.23 2021/01/30 07:00:05 benoit Exp $
COMMENT-main = tilt the floor to roll a ball through an obstacle course
COMMENT-data = data for Neverball/Neverputt
BROKEN-hppa = SIGILL on data/ball/snowglobe/snowglobe-inner.so
V = 1.6.0
REVISION-main = 2
REVISION-main = 3
DISTNAME = neverball-$V
PKGNAME-main = neverball-$V
PKGNAME-data = neverball-data-$V

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-share_text_h,v 1.1 2021/01/30 07:00:05 benoit Exp $
Fix -fno-common build failure.
--- share/text.h.orig Sat Jan 30 07:41:12 2021
+++ share/text.h Sat Jan 30 07:41:30 2021
@@ -15,7 +15,7 @@
/*---------------------------------------------------------------------------*/
-char text_input[MAXSTR];
+extern char text_input[MAXSTR];
void text_input_start(void (*cb)(int typing));
void text_input_stop(void);