From 0ce0376e0dcc12d1486ffc35db9cec9b6e8463fe Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Tue, 13 Feb 2001 12:13:33 +0000 Subject: [PATCH] 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 --- modules/aaa/mod_access.c | 5 +---- modules/dav/main/props.c | 9 +++------ 2 files changed, 4 insertions(+), 10 deletions(-) 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" -- 2.50.1