mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Check for pthread_yield() as not all platforms have that.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1044 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6ca46f4d7a
commit
3b2835843e
1 changed files with 11 additions and 0 deletions
11
acinclude.m4
11
acinclude.m4
|
|
@ -174,6 +174,17 @@ if test "x$acx_pthread_ok" = xyes; then
|
|||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if pthread_yield is available])
|
||||
flag=no
|
||||
AC_TRY_LINK([#include <pthread.h>],
|
||||
[pthread_yield();],
|
||||
[flag=yes])
|
||||
AC_MSG_RESULT(${flag})
|
||||
if test "x$flag" != xno; then
|
||||
AC_DEFINE(HAVE_PTHREAD_YIELD, 1,
|
||||
[Define to 1 if you have the 'pthread_yield' function.])
|
||||
fi
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue