pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libretro-mame2014: Add clang build fix (submitted to upstream)



Module Name:	pkgsrc-wip
Committed By:	Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By:	nee
Date:		Sat Aug 5 11:08:46 2017 +0100
Changeset:	41e5ad9faa55f79fc0658d860b5fa1ddbd1c77d4

Modified Files:
	libretro-mame2014/distinfo
Added Files:
	libretro-mame2014/patches/patch-src_emu_hiscore.c

Log Message:
libretro-mame2014: Add clang build fix (submitted to upstream)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=41e5ad9faa55f79fc0658d860b5fa1ddbd1c77d4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libretro-mame2014/distinfo                        |  1 +
 libretro-mame2014/patches/patch-src_emu_hiscore.c | 40 +++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diffs:
diff --git a/libretro-mame2014/distinfo b/libretro-mame2014/distinfo
index 9ae5c1880b..aac151ceea 100644
--- a/libretro-mame2014/distinfo
+++ b/libretro-mame2014/distinfo
@@ -5,3 +5,4 @@ RMD160 (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip)
 SHA512 (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 63fd147a37f36671324cb90d9987cd2de9337e623aa0387e8a6f135c871f8a915e76c4bed2c28db16b45824beb6abb35bb6d64e832388689932d66092b8aaf42
 Size (libretro-mame2014-20170316-87b2f8cc16c2cac7075595ee8a122e1e36b12ae0.zip) = 53870810 bytes
 SHA1 (patch-Makefile) = 9f59427598171177f53ba0434e6c8a4febf0868c
+SHA1 (patch-src_emu_hiscore.c) = 17744431b59606e04d6f6eec6ea9f5d7a8b8a9d8
diff --git a/libretro-mame2014/patches/patch-src_emu_hiscore.c b/libretro-mame2014/patches/patch-src_emu_hiscore.c
new file mode 100644
index 0000000000..2a11ab6994
--- /dev/null
+++ b/libretro-mame2014/patches/patch-src_emu_hiscore.c
@@ -0,0 +1,40 @@
+$NetBSD$
+
+--- src/emu/hiscore.c.orig	2017-03-16 20:39:20.000000000 +0000
++++ src/emu/hiscore.c
+@@ -36,7 +36,7 @@ static void copy_to_memory (running_mach
+ 	int i;
+ 	address_space *targetspace;
+ 
+-	if (strstr(machine.system().source_file,"cinemat.c") > 0)
++	if (strstr(machine.system().source_file,"cinemat.c") != NULL)
+ 	{
+ 		targetspace = &machine.cpu[cpu]->memory().space(AS_DATA);
+ 	}
+@@ -56,7 +56,7 @@ static void copy_from_memory (running_ma
+ 	int i;
+ 	address_space *targetspace;
+ 
+-	if (strstr(machine.system().source_file,"cinemat.c") > 0)
++	if (strstr(machine.system().source_file,"cinemat.c") != NULL)
+ 	{
+ 		targetspace = &machine.cpu[cpu]->memory().space(AS_DATA);
+ 	}
+@@ -154,7 +154,7 @@ static int safe_to_load (running_machine
+ 	memory_range *mem_range = state.mem_range;
+ 	address_space *srcspace;
+ 
+-	if (strstr(machine.system().source_file,"cinemat.c") > 0)
++	if (strstr(machine.system().source_file,"cinemat.c") != NULL)
+ 	{
+ 		srcspace = &machine.cpu[mem_range->cpu]->memory().space(AS_DATA);
+ 	}
+@@ -309,7 +309,7 @@ void hiscore_init (running_machine &mach
+ 
+ 	while (mem_range)
+ 	{
+-		if (strstr(machine.system().source_file,"cinemat.c") > 0)
++		if (strstr(machine.system().source_file,"cinemat.c") != NULL)
+ 		{
+ 			initspace = &machine.cpu[mem_range->cpu]->memory().space(AS_DATA);
+ 			initspace->write_byte(mem_range->addr, ~mem_range->start_value);


Home | Main Index | Thread Index | Old Index