Commit 74c8771a authored by Guido van Rossum's avatar Guido van Rossum

Fix the test for socklen_t so that it searches through sys/socket.h.

parent 4ed3d4c3
This diff is collapsed.
......@@ -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 \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment