From: Jeff Trawick Date: Thu, 15 Jun 2000 13:42:01 +0000 (+0000) Subject: Include the proper header file (under X/Open, at least) for ntohs() in X-Git-Tag: APACHE_2_0_ALPHA_5~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e38702601d37f3a2c6ec755ad7971baf4b712d1d;p=apache Include the proper header file (under X/Open, at least) for ntohs() in a couple of modules. This lets us link-edit successfully again on OS/390. (OS/390 only has the macro form of these functions.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85580 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index bf194cefe1..dc854ac186 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -79,6 +79,9 @@ #ifdef HAVE_SYS_SOCKET_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif /* Allow Apache to use ap_mmap */ #ifdef USE_MMAP_FILES diff --git a/server/util_script.c b/server/util_script.c index ea131cef0d..598071a685 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -74,6 +74,9 @@ #ifdef HAVE_STRING_H #include #endif +#ifdef HAVE_ARPA_INET_H +#include +#endif #ifdef OS2 #define INCL_DOS