mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #13057: Include stdio.h when NULL is used in configure.ac.
This commit is contained in:
parent
5bd9270954
commit
7dba5940ae
2 changed files with 19 additions and 3 deletions
10
configure
vendored
10
configure
vendored
|
@ -6562,6 +6562,7 @@ else
|
|||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
||||
void* routine(void* p){return NULL;}
|
||||
|
@ -6617,6 +6618,7 @@ else
|
|||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
||||
void* routine(void* p){return NULL;}
|
||||
|
@ -6666,6 +6668,7 @@ else
|
|||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
||||
void* routine(void* p){return NULL;}
|
||||
|
@ -6715,6 +6718,7 @@ else
|
|||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
||||
void* routine(void* p){return NULL;}
|
||||
|
@ -9323,6 +9327,8 @@ $as_echo "$unistd_defines_pthreads" >&6; }
|
|||
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
|
||||
void * start_routine (void *arg) { exit (0); }
|
||||
|
@ -9672,7 +9678,9 @@ else
|
|||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <pthread.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pthread.h>
|
||||
void *foo(void *parm) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue