1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 02:45:43 +00:00

extended pthread to work under qnx

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3002 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-19 14:11:57 +00:00
parent 55667d0378
commit 0faa3ec788

4
configure vendored
View File

@ -1080,15 +1080,17 @@ else
fi fi
echores "$_dl" echores "$_dl"
echocheck "pthread" echocheck "pthread"
cat > $TMPC << EOF cat > $TMPC << EOF
#include <pthread.h>
int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; } int main(void) { (void) pthread_create (0, 0, 0, 0); return 0; }
EOF EOF
if cc_check -lpthread ; then if cc_check -lpthread ; then
_ld_pthread='-lpthread' _ld_pthread='-lpthread'
elif cc_check -pthread ; then elif cc_check -pthread ; then
_ld_pthread='-pthread' _ld_pthread='-pthread'
elif cc_check ; then # QNX
_ld_pthread=''
else else
die "Lib pthread not found." die "Lib pthread not found."
fi fi