From 6529fd89f1ff989d348d6d1297ebe7f438228607 Mon Sep 17 00:00:00 2001 From: "Barak A. Pearlmutter" Date: Wed, 28 Dec 2016 13:12:45 +0100 Subject: [PATCH] need appropriate #include for socklen_t on Darwin --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ef194d9..c639c33 100644 --- a/configure.ac +++ b/configure.ac @@ -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 +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +]) AC_TYPE_UID_T AC_C_INLINE