]> granicus.if.org Git - apache/commitdiff
Include the proper header file (under X/Open, at least) for ntohs() in
authorJeff Trawick <trawick@apache.org>
Thu, 15 Jun 2000 13:42:01 +0000 (13:42 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 15 Jun 2000 13:42:01 +0000 (13:42 +0000)
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

modules/http/http_core.c
server/util_script.c

index bf194cefe1ffb4dc11142c2d3f3f5aca69b47a64..dc854ac186b36b29adb33e02784488f66598ad4d 100644 (file)
@@ -79,6 +79,9 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
 
 /* Allow Apache to use ap_mmap */
 #ifdef USE_MMAP_FILES
index ea131cef0d2aecece485fa358fffa574f845068c..598071a685aeeba1c46fc630cd9805285371776b 100644 (file)
@@ -74,6 +74,9 @@
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
 
 #ifdef OS2
 #define INCL_DOS