Skip to contentSkip to conversation

[5530] Fix undefined pthread_sigmask warning on OpenBSD

Qemu-devel Blue Swirl 2 participants 3 messages Oct 25, 2008 – Oct 26, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

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
#1 lore raw

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 undefined pthread_sigmask warning on OpenBSD

Modified Paths:
--------------
trunk/audio/sdlaudio.c

Modified: 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

author
#2 lore raw
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 undefined pthread_sigmask warning on OpenBSD

Modified Paths:
--------------
trunk/audio/sdlaudio.c

Modified: 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>
 #endif

I 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

http://cvsweb.netbsd.org/bsdweb.cgi/src/include/signal.h?rev=1.50&content-type=text/x-cvsweb-markup&only_with_tag=MAIN