Commit 9f8df9c10f5112014cffef0bf546bf344eeefc32
1 parent
e9ebead2
Fix false positive for AIO on OpenBSD
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6343 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
1 deletions
configure
... | ... | @@ -1005,7 +1005,9 @@ if test "$aio" = "yes" ; then |
1005 | 1005 | aio=no |
1006 | 1006 | cat > $TMPC << EOF |
1007 | 1007 | #include <pthread.h> |
1008 | -int main(void) { pthread_mutex_t lock; return 0; } | |
1008 | +#include <signal.h> | |
1009 | +int main(void) { struct sigevent s; pthread_mutex_t lock; | |
1010 | + return sigqueue(0, 0, s.sigev_value); } | |
1009 | 1011 | EOF |
1010 | 1012 | if $cc $ARCH_CFLAGS -o $TMPE $AIOLIBS $TMPC 2> /dev/null ; then |
1011 | 1013 | aio=yes | ... | ... |