From 0b3e4644f28b480c2e30185df0b8914225d613a5 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 b37b9986fa..5d9d0dfd91 100644 --- a/libs/libvpx/build/make/configure.sh +++ b/libs/libvpx/build/make/configure.sh @@ -1631,7 +1631,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 enabled 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.