From 1e9786b8ec0f68f5d8697593a2e0e7a6fd1e194b Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 12 Feb 2020 21:44:29 +0400 Subject: [PATCH] [libvpx] Fix pthread configure checks: "Null pointer passed as an argument to a 'nonnull' parameter" --- libs/libvpx/build/make/configure.sh | 4 +++- libs/libvpx/configure | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/libvpx/build/make/configure.sh b/libs/libvpx/build/make/configure.sh index 4c82b83e48..45f97adacd 100644 --- a/libs/libvpx/build/make/configure.sh +++ b/libs/libvpx/build/make/configure.sh @@ -1520,7 +1520,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 e2397ae49f..fb4d7b4ba8 100755 --- a/libs/libvpx/configure +++ b/libs/libvpx/configure @@ -596,7 +596,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.