qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD
@ 2008-10-25 11:19 Blue Swirl
  2008-10-25 21:14 ` Juergen Lock
  0 siblings, 1 reply; 3+ messages in thread
From: Blue Swirl @ 2008-10-25 11:19 UTC (permalink / raw)
  To: qemu-devel

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
===================================================================
--- trunk/audio/sdlaudio.c	2008-10-25 11:18:12 UTC (rev 5529)
+++ trunk/audio/sdlaudio.c	2008-10-25 11:19:14 UTC (rev 5530)
@@ -29,6 +29,8 @@
 #ifndef _WIN32
 #ifdef __sun__
 #define _POSIX_PTHREAD_SEMANTICS 1
+#elif defined(__OpenBSD__)
+#include <pthread.h>
 #endif
 #include <signal.h>
 #endif

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD
  2008-10-25 11:19 [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD Blue Swirl
@ 2008-10-25 21:14 ` Juergen Lock
  2008-10-26  9:52   ` Blue Swirl
  0 siblings, 1 reply; 3+ messages in thread
From: Juergen Lock @ 2008-10-25 21:14 UTC (permalink / raw)
  To: blauwirbel; +Cc: qemu-devel

Hi!

In article <E1KthAo-0006G1-Pq@cvs.savannah.gnu.org> you write:
>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
>===================================================================
>--- trunk/audio/sdlaudio.c	2008-10-25 11:18:12 UTC (rev 5529)
>+++ trunk/audio/sdlaudio.c	2008-10-25 11:19:14 UTC (rev 5530)
>@@ -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

>+#elif defined(__OpenBSD__)

 can be changed to

>+#elif defined(__OpenBSD__) || defined(__FreeBSD__)

 Or do I need to send a proper patch? :)

 Thanx,
	Juergen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD
  2008-10-25 21:14 ` Juergen Lock
@ 2008-10-26  9:52   ` Blue Swirl
  0 siblings, 0 replies; 3+ messages in thread
From: Blue Swirl @ 2008-10-26  9:52 UTC (permalink / raw)
  To: Juergen Lock; +Cc: qemu-devel

On 10/25/08, Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> Hi!
>
>
>  In article <E1KthAo-0006G1-Pq@cvs.savannah.gnu.org> you write:
>  >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
>  >===================================================================
>  >--- trunk/audio/sdlaudio.c     2008-10-25 11:18:12 UTC (rev 5529)
>  >+++ trunk/audio/sdlaudio.c     2008-10-25 11:19:14 UTC (rev 5530)
>  >@@ -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
>
>  >+#elif defined(__OpenBSD__)
>
>   can be changed to
>
>  >+#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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-26  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-25 11:19 [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD Blue Swirl
2008-10-25 21:14 ` Juergen Lock
2008-10-26  9:52   ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).