mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
Fix the test for socklen_t so that it searches through sys/socket.h.
This commit is contained in:
parent
8c5cedee69
commit
95713eb9d6
12
configure.in
12
configure.in
|
@ -356,7 +356,7 @@ AC_HEADER_STDC
|
|||
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
|
||||
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
|
||||
sys/audioio.h sys/file.h sys/lock.h \
|
||||
sys/param.h sys/select.h sys/time.h sys/times.h \
|
||||
sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
|
||||
sys/un.h sys/utsname.h sys/wait.h)
|
||||
AC_HEADER_DIRENT
|
||||
|
||||
|
@ -380,7 +380,6 @@ AC_TYPE_PID_T
|
|||
AC_TYPE_SIGNAL
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_UID_T
|
||||
AC_CHECK_TYPE(socklen_t, int)
|
||||
|
||||
# Sizes of various common basic types
|
||||
AC_CHECK_SIZEOF(int)
|
||||
|
@ -1080,6 +1079,15 @@ else AC_MSG_RESULT(no)
|
|||
fi],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
|
||||
# Add sys/socket.h to confdefs.h
|
||||
cat >> confdefs.h <<\EOF
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
EOF
|
||||
AC_CHECK_TYPE(socklen_t, int)
|
||||
|
||||
# generate output files
|
||||
AC_OUTPUT(Makefile \
|
||||
Objects/Makefile \
|
||||
|
|
Loading…
Reference in a new issue