From f202bd3cb93b6904b65df247e7616cf80dbfcf62 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 12 Feb 2001 21:03:35 +0000 Subject: [PATCH] include for the declarations for htons() et al; OS/390 has macros in arpa/inet.h which turn such "calls" into nothing and does not have functions to link against in libc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88120 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/main/props.c | 3 +++ server/vhost.c | 4 ++++ 2 files changed, 7 insertions(+) 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. -- 2.40.0