Commit 0b3e4644f2 for freeswitch.com

commit 0b3e4644f28b480c2e30185df0b8914225d613a5
Author: Andrey Volk <andywolk@gmail.com>
Date:   Wed Feb 12 21:44:29 2020 +0400

    [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 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 <<EOF && add_extralibs -lpthread || disable_feature pthread_h
 #include <pthread.h>
 #include <stddef.h>
-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 <<EOF && enable_feature pthread_setname_np
diff --git a/libs/libvpx/configure b/libs/libvpx/configure
index 9e9d80bba5..7ef5fdcb73 100755
--- a/libs/libvpx/configure
+++ b/libs/libvpx/configure
@@ -638,7 +638,9 @@ EOF
     check_header pthread.h && check_lib -lpthread <<EOF || disable_feature pthread_h
 #include <pthread.h>
 #include <stddef.h>
-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.