Fix for -no-common from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8edf247202490c028bce701f26b52e39f996c287
This commit is contained in:
parent
a74e9e83cd
commit
7bb9699d66
@ -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
|
||||
|
16
games/lincity/patches/patch-fileutil_c
Normal file
16
games/lincity/patches/patch-fileutil_c
Normal 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;
|
||||
|
17
games/lincity/patches/patch-ldsvguts_c
Normal file
17
games/lincity/patches/patch-ldsvguts_c
Normal 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
|
||||
* ---------------------------------------------------------------------- */
|
18
games/lincity/patches/patch-main_c
Normal file
18
games/lincity/patches/patch-main_c
Normal 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;
|
16
games/lincity/patches/patch-screen_h
Normal file
16
games/lincity/patches/patch-screen_h
Normal 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;
|
Loading…
Reference in New Issue
Block a user