From: Jeff Trawick Date: Tue, 13 Feb 2001 12:13:33 +0000 (+0000) Subject: Use apr_want.h to get the declarations for ntohs et al instead of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e70b4447afe936ec3e44756abc5f2ab0552836b;p=apache Use apr_want.h to get the declarations for ntohs et al instead of including the appropriate system header files directly. This gets rid of a warning for props.c on FreeBSD 3.4 which cropped up when I included the right header file to get OS/390 to build :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88132 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_access.c b/modules/aaa/mod_access.c index 11ef94e354..4a1afa3bb8 100644 --- a/modules/aaa/mod_access.c +++ b/modules/aaa/mod_access.c @@ -68,6 +68,7 @@ #include "apr_lib.h" #define APR_WANT_STRFUNC +#define APR_WANT_BYTEFUNC #include "apr_want.h" #include "ap_config.h" @@ -80,10 +81,6 @@ #if APR_HAVE_NETINET_IN_H #include #endif -#if APR_HAVE_ARPA_INET_H -#include -#endif - enum allowdeny_type { T_ENV, diff --git a/modules/dav/main/props.c b/modules/dav/main/props.c index 848bc9ba73..49982189b9 100644 --- a/modules/dav/main/props.c +++ b/modules/dav/main/props.c @@ -181,12 +181,9 @@ #include "apr.h" #include "apr_strings.h" -#if APR_HAVE_STDIO_H -#include /* for sprintf() */ -#endif -#if APR_HAVE_ARPA_INET_H -#include /* for ntohs(), htons() */ -#endif +#define APR_WANT_STDIO +#define APR_WANT_BYTEFUNC +#include "apr_want.h" #include "mod_dav.h"