diff --git a/modules/dav/main/props.c b/modules/dav/main/props.c index 58b369c000..848bc9ba73 100644 --- a/modules/dav/main/props.c +++ b/modules/dav/main/props.c @@ -184,6 +184,9 @@ #if APR_HAVE_STDIO_H #include /* for sprintf() */ #endif +#if APR_HAVE_ARPA_INET_H +#include /* for ntohs(), htons() */ +#endif #include "mod_dav.h" diff --git a/server/vhost.c b/server/vhost.c index f82c986e18..ab4aa7712d 100644 --- a/server/vhost.c +++ b/server/vhost.c @@ -77,6 +77,10 @@ #include "http_protocol.h" #include "http_core.h" +#if APR_HAVE_ARPA_INET_H +#include +#endif + /* * After all the definitions there's an explanation of how it's all put * together.