]> granicus.if.org Git - apache/commitdiff
include <arpa/inet.h> for the declarations for htons() et al; OS/390 has
authorJeff Trawick <trawick@apache.org>
Mon, 12 Feb 2001 21:03:35 +0000 (21:03 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 12 Feb 2001 21:03:35 +0000 (21:03 +0000)
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
server/vhost.c

index 58b369c0008d55f7c39764edca878cea29f6bbf3..848bc9ba7332937a62ad0b66033ad40e9d8af00b 100644 (file)
 #if APR_HAVE_STDIO_H
 #include <stdio.h>              /* for sprintf() */
 #endif
+#if APR_HAVE_ARPA_INET_H
+#include <arpa/inet.h>          /* for ntohs(), htons() */
+#endif
 
 #include "mod_dav.h"
 
index f82c986e18556e81568e7e8034ce0da6a381610b..ab4aa7712d51723b6c2483c3a807ddea86efc8dc 100644 (file)
 #include "http_protocol.h"
 #include "http_core.h"
 
+#if APR_HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
 /*
  * After all the definitions there's an explanation of how it's all put
  * together.