From: Andrey Volk Date: Wed, 12 Feb 2020 17:44:29 +0000 (+0400) Subject: [libvpx] Fix pthread configure checks: "Null pointer passed as an argument to a ... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51742eed1ea2b129b9bb4270f030ecbeb600532c;p=thirdparty%2Ffreeswitch.git [libvpx] Fix pthread configure checks: "Null pointer passed as an argument to a 'nonnull' parameter" --- diff --git a/libs/libvpx/build/make/configure.sh b/libs/libvpx/build/make/configure.sh index d28446c952..028edabb79 100644 --- a/libs/libvpx/build/make/configure.sh +++ b/libs/libvpx/build/make/configure.sh @@ -1528,7 +1528,9 @@ EOF check_header pthread.h && check_lib -lpthread < #include -int main(void) { return pthread_create(NULL, NULL, NULL, NULL); } +void *thread_check (void *); +void *thread_check (void *obj){ return obj;}; +int main(void) { pthread_t thread_id; return pthread_create(&thread_id, NULL, thread_check, NULL); } EOF ;; esac diff --git a/libs/libvpx/configure b/libs/libvpx/configure index beea650329..e7917c98cf 100755 --- a/libs/libvpx/configure +++ b/libs/libvpx/configure @@ -609,7 +609,9 @@ EOF check_header pthread.h && check_lib -lpthread < #include -int main(void) { return pthread_create(NULL, NULL, NULL, NULL); } +void *thread_check (void *); +void *thread_check (void *obj){ return obj;}; +int main(void) { pthread_t thread_id; return pthread_create(&thread_id, NULL, thread_check, NULL); } EOF check_header unistd.h # for sysconf(3) and friends.