pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/sdlmame/patches NetBSD-current provides popc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f2e0948a48b4
branches: trunk
changeset: 398515:f2e0948a48b4
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Sep 01 15:20:19 2009 +0000
description:
NetBSD-current provides popcount, avoid conflict.
diffstat:
emulators/sdlmame/patches/patch-ac | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r e66287d54573 -r f2e0948a48b4 emulators/sdlmame/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/sdlmame/patches/patch-ac Tue Sep 01 15:20:19 2009 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2009/09/01 15:20:19 wiz Exp $
+
+--- src/emu/mamecore.h.orig 2009-09-01 14:40:54.000000000 +0000
++++ src/emu/mamecore.h
+@@ -333,6 +333,10 @@ DECL_NORETURN void CLIB_DECL fatalerror_
+ INLINE FUNCTIONS
+ ***************************************************************************/
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
++#if !defined(__NetBSD__) || (__NetBSD_Version__ < 599001500)
+ /* population count */
+ INLINE int popcount(UINT32 val)
+ {
+@@ -342,6 +346,7 @@ INLINE int popcount(UINT32 val)
+ val &= val - 1;
+ return count;
+ }
++#endif
+
+
+ /* convert a series of 32 bits into a float */
Home |
Main Index |
Thread Index |
Old Index