[libvpx] Fix pthread configure checks: "Null pointer passed as an argument to a 'nonnull' parameter"

This commit is contained in:
Andrey Volk 2020-02-12 21:44:29 +04:00
parent 43df2e1c2e
commit 1e9786b8ec
2 changed files with 6 additions and 2 deletions

View 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

View File

@ -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.