configure: fix compiler warning in pthread test code

This commit is contained in:
Miroslav Lichvar 2018-08-31 11:04:36 +02:00
parent d1777087c1
commit 74a546a9e7

2
configure vendored
View file

@ -647,7 +647,7 @@ fi
if [ $feat_asyncdns = "1" ] && \
test_code 'pthread' 'pthread.h' '-pthread' '' \
'return pthread_create((void *)1, NULL, (void *)1, NULL);'
'return (int)pthread_create((void *)1, NULL, (void *)1, NULL);'
then
add_def FEAT_ASYNCDNS
add_def USE_PTHREAD_ASYNCDNS