Make it build on DragonFly.

This commit is contained in:
hasso 2009-04-19 09:49:12 +00:00
parent 7f76479ce5
commit a8d652f6f7
4 changed files with 18 additions and 14 deletions

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.2 2009/04/06 10:09:05 wiz Exp $
$NetBSD: distinfo,v 1.3 2009/04/19 09:49:12 hasso Exp $
SHA1 (sdlmame0130.zip) = af6d050265467285b30b606f0a406d9a2837d5b6
RMD160 (sdlmame0130.zip) = f7aadad2d9ead6fd83b5cf73d80c28491b24c0ae
Size (sdlmame0130.zip) = 17681979 bytes
SHA1 (patch-aa) = 38c0eb8560fcc4d5721d6461c2966785d1e8abc7
SHA1 (patch-ab) = 9854400aadac7848531ed242a03ae05d5747bb5f
SHA1 (patch-ab) = c49551959d68aaad754121ce8dc874b936f3b4de
SHA1 (patch-ae) = dbcf17c973733727a6e1cc7a18f879d2b90d7184
SHA1 (patch-ah) = 6a8e0307a58114cfe59d066a4e5e6210895dcc9a

View file

@ -1,11 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2009/01/18 16:02:17 wiz Exp $
$NetBSD: patch-ab,v 1.2 2009/04/19 09:49:12 hasso Exp $
--- src/osd/sdl/sdlsync.c.orig 2008-12-12 04:55:30.000000000 +0100
+++ src/osd/sdl/sdlsync.c
@@ -587,14 +587,27 @@ int osd_thread_adjust_priority(osd_threa
--- src/osd/sdl/sdlsync.c.orig 2008-12-12 05:55:30 +0200
+++ src/osd/sdl/sdlsync.c 2009-04-19 08:43:17 +0300
@@ -586,15 +586,28 @@ int osd_thread_adjust_priority(osd_threa
int osd_thread_cpu_affinity(osd_thread *thread, UINT32 mask)
{
#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP)
-#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP)
+#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP) && !defined(__DragonFly__)
+#if defined(__NetBSD__)
+ cpuset_t *cmask;
+#else

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
$NetBSD: distinfo,v 1.2 2009/04/19 09:50:06 hasso Exp $
SHA1 (sdlmess0129.zip) = 5b48a5922647b51a96f1b302691d843b8153483d
RMD160 (sdlmess0129.zip) = e6785a3f5a932187075fdf963200b7d9ac02614f
Size (sdlmess0129.zip) = 31176249 bytes
SHA1 (patch-aa) = 0b752651da139512c0dac7541f003805b805c140
SHA1 (patch-ab) = 9854400aadac7848531ed242a03ae05d5747bb5f
SHA1 (patch-ab) = c49551959d68aaad754121ce8dc874b936f3b4de
SHA1 (patch-ah) = 6a8e0307a58114cfe59d066a4e5e6210895dcc9a

View file

@ -1,11 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2009/01/18 16:02:57 wiz Exp $
$NetBSD: patch-ab,v 1.2 2009/04/19 09:50:06 hasso Exp $
--- src/osd/sdl/sdlsync.c.orig 2008-12-12 04:55:30.000000000 +0100
+++ src/osd/sdl/sdlsync.c
@@ -587,14 +587,27 @@ int osd_thread_adjust_priority(osd_threa
--- src/osd/sdl/sdlsync.c.orig 2008-12-12 05:55:30 +0200
+++ src/osd/sdl/sdlsync.c 2009-04-19 08:43:17 +0300
@@ -586,15 +586,28 @@ int osd_thread_adjust_priority(osd_threa
int osd_thread_cpu_affinity(osd_thread *thread, UINT32 mask)
{
#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP)
-#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP)
+#if !defined(NO_THREAD_COOPERATIVE) && !defined(NO_AFFINITY_NP) && !defined(__DragonFly__)
+#if defined(__NetBSD__)
+ cpuset_t *cmask;
+#else