]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libvpx] Fix pthread configure checks: "Null pointer passed as an argument to a ...
authorAndrey Volk <andywolk@gmail.com>
Wed, 12 Feb 2020 17:44:29 +0000 (21:44 +0400)
committerAndrey Volk <andywolk@gmail.com>
Fri, 10 Jul 2026 16:38:46 +0000 (19:38 +0300)
libs/libvpx/build/make/configure.sh
libs/libvpx/configure

index d28446c952e69c07ca73bc0edd3a91be9adc9846..028edabb797112a11e2c0f8261d99b3daa67d40c 100644 (file)
@@ -1528,7 +1528,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
         ;;
     esac
index beea6503298d36245634eeecc5a9456e26ab9eaf..e7917c98cf1f9181d1093795282fffabe70f7f5d 100755 (executable)
@@ -609,7 +609,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.