mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
need appropriate #include for socklen_t on Darwin
This commit is contained in:
parent
a602f3c1e2
commit
6529fd89f1
1 changed files with 9 additions and 1 deletions
10
configure.ac
10
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_CHECK_TYPES([socklen_t],,
|
||||||
AC_DEFINE([socklen_t],[int],
|
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_TYPE_UID_T
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
Loading…
Add table
Reference in a new issue