[5530] Fix undefined pthread_sigmask warning on OpenBSD
Revision: 5530
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5530 Author: blueswir1 Date: 2008-10-25 11:19:14 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
Fix undefined pthread_sigmask warning on OpenBSD
Modified Paths:
--------------
trunk/audio/sdlaudio.c
Modified: trunk/audio/sdlaudio.c
===================================================================
audio/sdlaudio.c +2 -0
@@ -29,6 +29,8 @@#ifndef _WIN32#ifdef __sun__#define _POSIX_PTHREAD_SEMANTICS 1 +#elif defined(__OpenBSD__) +#include <pthread.h> #endif #include <signal.h> #endif
Hi!
In article <[email protected]> you write:
Quoted 19 lines
Revision: 5530
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5530 Author: blueswir1 Date: 2008-10-25 11:19:14 +0000 (Sat, 25 Oct 2008)Log Message:
-----------
Fix undefinedpthread_sigmaskwarning on OpenBSDModified Paths:
--------------
trunk/audio/sdlaudio.cModified:
trunk/audio/sdlaudio.c
===================================================================
audio/sdlaudio.c line 36
Quoted 8 lines
audio/sdlaudio.c +2
-0@@ -29,6 +29,8 @@#ifndef _WIN32#ifdef __sun__#define _POSIX_PTHREAD_SEMANTICS 1 +#elif defined(__OpenBSD__) +#include <pthread.h> #endif #include <signal.h> #endif
I forgot to mention that I also patched this for FreeBSD, so the above
Quoted 1 line
+#elif
defined(__OpenBSD__)
can be changed to
Quoted 1 line
+#elif
defined(__OpenBSD__)||defined(__FreeBSD__)
Or do I need to send a proper patch? :)
Thanx,
Juergen
Quoted 34 lines · Juergen Lock
Hi!
In article <[email protected]> you write:
Quoted 19 lines
Revision: 5530
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5530 Author: blueswir1 Date: 2008-10-25 11:19:14 +0000 (Sat, 25 Oct 2008)Log Message:
-----------
Fix undefinedpthread_sigmaskwarning on OpenBSDModified Paths:
--------------
trunk/audio/sdlaudio.cModified:
trunk/audio/sdlaudio.c
===================================================================audio/sdlaudio.c 2008-10-25 11:19:14 UTC (rev 5530) line 36
Quoted 8 lines
audio/sdlaudio.c 2008-10-25 11:19:14 UTC (rev 5530) renamed from audio/sdlaudio.c 2008-10-25 11:18:12 UTC (rev 5529) +2
-0@@ -29,6 +29,8 @@ #ifndef _WIN32 #ifdef __sun__ #define _POSIX_PTHREAD_SEMANTICS 1 +#elif defined(__OpenBSD__) +#include <pthread.h> #endif #include <signal.h> #endifI forgot to mention that I also patched this for FreeBSD, so the above
Quoted 7 lines
Quoted 1 line
+#elif
defined(__OpenBSD__)can be changed to
Quoted 1 line
+#elif
defined(__OpenBSD__)||defined(__FreeBSD__)Or do I need to send a proper patch? :)
No, I'll just copy and paste. It looks like NetBSD uses signal.h like everyone should.
http://www.opengroup.org/onlinepubs/009695399/functions/pthread_sigmask.html