diff options
Diffstat (limited to 'build/apr_network.m4')
-rw-r--r-- | build/apr_network.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/apr_network.m4 b/build/apr_network.m4 index 248898283..d330ba16f 100644 --- a/build/apr_network.m4 +++ b/build/apr_network.m4 @@ -63,6 +63,9 @@ AC_DEFUN([APR_CHECK_WORKING_GETADDRINFO], [ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif int main(void) { struct addrinfo hints, *ai; @@ -151,6 +154,9 @@ AC_DEFUN([APR_CHECK_WORKING_GETNAMEINFO], [ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif int main(void) { struct sockaddr_in sa; @@ -194,6 +200,9 @@ AC_DEFUN([APR_CHECK_NEGATIVE_EAI], [ #ifdef HAVE_NETDB_H #include <netdb.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif int main(void) { if (EAI_ADDRFAMILY < 0) { @@ -403,6 +412,9 @@ AC_DEFUN([APR_CHECK_TCP_NODELAY_INHERITED], [ #ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif int main(void) { int listen_s, connected_s, client_s; int listen_port, rc; @@ -588,6 +600,9 @@ typedef int socklen_t; #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif int main(void) { int listen_s, connected_s, client_s; int listen_port, rc; |