svn commit: r511817 - head/emulators/rpcs3/files
Jan Beich
jbeich at FreeBSD.org
Wed Sep 11 11:47:02 UTC 2019
Author: jbeich
Date: Wed Sep 11 11:47:01 2019
New Revision: 511817
URL: https://svnweb.freebsd.org/changeset/ports/511817
Log:
emulators/rpcs3: unbreak WITH_DEBUG build
ld: error: undefined symbol: id_manager::id_traits<sys_vm_t, void>::invalid
>>> referenced by sys_vm.cpp:19 (rpcs3/Emu/Cell/lv2/sys_vm.cpp:19)
>>> sys_vm.cpp.o:(sys_vm_t::~sys_vm_t()) in archive rpcs3/Emu/librpcs3_emu.a
Added:
head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h (contents, props changed)
Added: head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h Wed Sep 11 11:47:01 2019 (r511817)
@@ -0,0 +1,13 @@
+https://github.com/RPCS3/rpcs3/issues/6529
+
+--- rpcs3/Emu/IdManager.h.orig 2019-09-09 16:16:02 UTC
++++ rpcs3/Emu/IdManager.h
+@@ -30,7 +30,7 @@ namespace id_manager
+ static const u32 base = T::id_base;
+ static const u32 step = T::id_step;
+ static const u32 count = T::id_count;
+- static const u32 invalid = base > 0 ? 0 : -1;
++ static constexpr u32 invalid = base > 0 ? 0 : -1;
+
+ // Note: full 32 bits range cannot be used at current implementation
+ static_assert(count > 0 && step > 0 && u64{step} * count + base < u64{UINT32_MAX} + (base != 0 ? 1 : 0), "ID traits: invalid object range");
More information about the svn-ports-all
mailing list