aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-16 18:13:32 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-16 18:13:32 +0000
commit9f8df9c10f5112014cffef0bf546bf344eeefc32 (patch)
treeeaa38189c632f7d52e7022e8c00a666acb2e9cc0 /configure
parente9ebead2b5c70890454e698d9ff174e3020ea861 (diff)
Fix false positive for AIO on OpenBSD
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6343 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index f4b67ea3b2..57e2d57e00 100755
--- a/configure
+++ b/configure
@@ -1005,7 +1005,9 @@ if test "$aio" = "yes" ; then
aio=no
cat > $TMPC << EOF
#include <pthread.h>
-int main(void) { pthread_mutex_t lock; return 0; }
+#include <signal.h>
+int main(void) { struct sigevent s; pthread_mutex_t lock;
+ return sigqueue(0, 0, s.sigev_value); }
EOF
if $cc $ARCH_CFLAGS -o $TMPE $AIOLIBS $TMPC 2> /dev/null ; then
aio=yes