diff options
author | micha <micha@pkgsrc.org> | 2021-08-23 14:27:43 +0000 |
---|---|---|
committer | micha <micha@pkgsrc.org> | 2021-08-23 14:27:43 +0000 |
commit | a0ed23db90826da378e8b57fb95c79f569f1a56b (patch) | |
tree | 6ac19f983ea46947071cff52dd7f11d3471c4dc9 /games | |
parent | 9f676fd9192224a2568756707022556f4f62fec5 (diff) | |
download | pkgsrc-a0ed23db90826da378e8b57fb95c79f569f1a56b.tar.gz |
games/woof: Build fix
Renamed variable "time" to unbreak build on SmartOS.
No bump for PKGREVISION required.
Diffstat (limited to 'games')
-rw-r--r-- | games/woof/distinfo | 3 | ||||
-rw-r--r-- | games/woof/patches/patch-Source_wi__stuff.c | 46 |
2 files changed, 48 insertions, 1 deletions
diff --git a/games/woof/distinfo b/games/woof/distinfo index 3ab585f2cf8..606f014681f 100644 --- a/games/woof/distinfo +++ b/games/woof/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.21 2021/08/20 15:23:05 micha Exp $ +$NetBSD: distinfo,v 1.22 2021/08/23 14:27:43 micha Exp $ SHA1 (woof_6.3.1.tar.gz) = 03336e19759847187fe1e2ae0a2893577a90782d RMD160 (woof_6.3.1.tar.gz) = 2186d9d90c888b68d92776723ce78fefae0b578f SHA512 (woof_6.3.1.tar.gz) = aad2a66b36480012ff01d25b6692d0f0d6048d90f5ecf1e0de081a2423884afdedc9e1fd97dec621d2641033907b528fa05481b9d7eeb6e96e4cc226651f8259 Size (woof_6.3.1.tar.gz) = 1986946 bytes SHA1 (patch-Source_d__iwad.c) = fc897f508e31653495bfed26152a7e6d70021089 +SHA1 (patch-Source_wi__stuff.c) = 94d16305a725ac269e37038d2a8ce3c969a0d2ee diff --git a/games/woof/patches/patch-Source_wi__stuff.c b/games/woof/patches/patch-Source_wi__stuff.c new file mode 100644 index 00000000000..705565aa5f1 --- /dev/null +++ b/games/woof/patches/patch-Source_wi__stuff.c @@ -0,0 +1,46 @@ +$NetBSD: patch-Source_wi__stuff.c,v 1.1 2021/08/23 14:27:43 micha Exp $ + +Workaround for namespace clash on SmartOS: + +/home/pbulk/build/games/woof/work/woof-woof_6.3.1/Source/wi_stuff.c:366:19: error: 'time' redeclared as different kind of symbol + 366 | static patch_t* time; + | ^~~~ + +--- Source/wi_stuff.c.orig 2021-08-13 13:18:32.000000000 +0000 ++++ Source/wi_stuff.c +@@ -363,7 +363,7 @@ static patch_t* items; + static patch_t* frags; + + // Time sucks. +-static patch_t* time; ++static patch_t* woof_time; + static patch_t* par; + static patch_t* sucks; + +@@ -897,7 +897,7 @@ static void WI_unloadData(void) + Z_ChangeTag(sp_secret, PU_CACHE); + Z_ChangeTag(items, PU_CACHE); + Z_ChangeTag(frags, PU_CACHE); +- Z_ChangeTag(time, PU_CACHE); ++ Z_ChangeTag(woof_time, PU_CACHE); + Z_ChangeTag(sucks, PU_CACHE); + Z_ChangeTag(par, PU_CACHE); + +@@ -1815,7 +1815,7 @@ static void WI_drawStats(void) + V_DrawPatch(SP_STATSX, SP_STATSY+2*lh, FB, sp_secret); + WI_drawPercent(ORIGWIDTH - SP_STATSX, SP_STATSY+2*lh, cnt_secret[0]); + +- V_DrawPatch(SP_TIMEX, SP_TIMEY, FB, time); ++ V_DrawPatch(SP_TIMEX, SP_TIMEY, FB, woof_time); + WI_drawTime(ORIGWIDTH/2 - SP_TIMEX, SP_TIMEY, cnt_time, true); + + // Ty 04/11/98: redid logic: should skip only if with pwad but +@@ -2077,7 +2077,7 @@ void WI_loadData(void) + colon = W_CacheLumpName("WICOLON", PU_STATIC); + + // "time" +- time = W_CacheLumpName("WITIME", PU_STATIC); ++ woof_time = W_CacheLumpName("WITIME", PU_STATIC); + + // "sucks" + sucks = W_CacheLumpName("WISUCKS", PU_STATIC); |