need appropriate #include for socklen_t on Darwin

This commit is contained in:
Barak A. Pearlmutter 2016-12-28 13:12:45 +01:00
parent a602f3c1e2
commit 6529fd89f1

View file

@ -157,7 +157,15 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h str
AC_CHECK_TYPES([socklen_t],,
AC_DEFINE([socklen_t],[int],
[define to int if type socklen_t not found]))
[define to int if type socklen_t not found]),
[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
])
AC_TYPE_UID_T
AC_C_INLINE