Commit 8e70b444 authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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
parent 73011591
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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 <netinet/in.h>
#endif
#if APR_HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif


enum allowdeny_type {
    T_ENV,
+3 −6
Original line number Diff line number Diff line
@@ -181,12 +181,9 @@
#include "apr.h"
#include "apr_strings.h"

#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
#define APR_WANT_STDIO
#define APR_WANT_BYTEFUNC
#include "apr_want.h"

#include "mod_dav.h"