]> 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, 6 Mar 2020 17:45:53 +0000 (21:45 +0400)
libs/libvpx/build/make/configure.sh
libs/libvpx/configure

index 4c82b83e485fff40e0d973a3db38c81089cda2a7..45f97adacdbfc647d5dfef11779b206eb8d95129 100644 (file)
@@ -1520,7 +1520,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 e2397ae49f8070eb017248ca714fd025e960be27..fb4d7b4ba8c3b23d6e8fd37afc0b588b5ffe2cfe 100755 (executable)
@@ -596,7 +596,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.