kirby 2021-02-06 09:31:46 +00:00
parent a74e9e83cd
commit 7bb9699d66
5 changed files with 69 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.21 2019/07/12 20:46:20 sthen Exp $
# $OpenBSD: Makefile,v 1.22 2021/02/06 09:31:46 kirby Exp $
COMMENT= Rich city simulation game for X
DISTNAME= lincity-1.13.1
CATEGORIES= games
HOMEPAGE= http://lincity.sourceforge.net/
REVISION= 0
REVISION= 1
# GPLv2 only
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-fileutil_c,v 1.1 2021/02/06 09:31:46 kirby Exp $
Fix for -fno-common from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edf247202490c028bce701f26b52e39f996c287
Index: fileutil.c
--- fileutil.c.orig
+++ fileutil.c
@@ -105,7 +105,7 @@ static const char *guess_category_value (int category,
* ---------------------------------------------------------------------- */
char LIBDIR[LC_PATH_MAX];
-char *lc_save_dir;
+extern char *lc_save_dir;
int lc_save_dir_len;
static char *lc_temp_filename;

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-ldsvguts_c,v 1.1 2021/02/06 09:31:46 kirby Exp $
Fix for -fno-common from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edf247202490c028bce701f26b52e39f996c287
Index: ldsvguts.c
--- ldsvguts.c.orig
+++ ldsvguts.c
@@ -91,8 +91,6 @@ int verify_city (char *cname);
* Private Global Variables
* ---------------------------------------------------------------------- */
-char save_names[10][42];
-
/* ---------------------------------------------------------------------- *
* Public functions
* ---------------------------------------------------------------------- */

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-main_c,v 1.1 2021/02/06 09:31:46 kirby Exp $
Fix for -fno-common from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edf247202490c028bce701f26b52e39f996c287
Index: main.c
--- main.c.orig
+++ main.c
@@ -96,9 +96,8 @@ char LIBDIR[LC_PATH_MAX];
#endif
#endif
-char *lc_save_dir;
+extern char *lc_save_dir;
char *lc_temp_file;
-char save_names[10][42];
#ifdef CS_PROFILE
int prof_countdown = PROFILE_COUNTDOWN;

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-screen_h,v 1.1 2021/02/06 09:31:46 kirby Exp $
Fix for -fno-common from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edf247202490c028bce701f26b52e39f996c287
Index: screen.h
--- screen.h.orig
+++ screen.h
@@ -20,7 +20,7 @@ extern unsigned char start_font1[2048];
extern unsigned char start_font2[4096];
extern unsigned char start_font3[4096];
-int monthgraph_style;
+extern int monthgraph_style;
/* This is on in screen_full_refresh, used in *_refresh() */
extern char screen_refreshing;