Fix false positive for AIO on OpenBSD
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 16 Jan 2009 18:13:32 +0000 (18:13 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 16 Jan 2009 18:13:32 +0000 (18:13 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6343 c046a42c-6fe2-441c-8c8c-71466251a162

configure

index f4b67ea3b28cf0d851bb07ce244064ba169b146b..57e2d57e00b2e037fd09bb977da886301cf8dbe5 100755 (executable)
--- 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