[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD
From: |
Juergen Lock |
Subject: |
Re: [Qemu-devel] [5530] Fix undefined pthread_sigmask warning on OpenBSD |
Date: |
Sat, 25 Oct 2008 23:14:52 +0200 (CEST) |
Hi!
In article <address@hidden> 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