mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add sys/types.h and stdio.h into getaddrinfo test, based on itojun's message
in http://mail.python.org/pipermail/python-dev/2001-November/018473.html
This commit is contained in:
parent
75edc6a033
commit
c010b6d9e0
2 changed files with 144 additions and 140 deletions
|
@ -1431,8 +1431,10 @@ AC_CHECK_FUNCS(gettimeofday, AC_TRY_COMPILE([#include <sys/time.h>], [gettimeofd
|
|||
# for [no]getaddrinfo in netdb.h.
|
||||
AC_MSG_CHECKING(for getaddrinfo)
|
||||
AC_TRY_LINK([
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
#include <stdio.h>
|
||||
],[
|
||||
getaddrinfo(NULL, NULL, NULL, NULL);
|
||||
], [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue