]> granicus.if.org Git - apache/commitdiff
Use apr_want.h to get the declarations for ntohs et al instead of
authorJeff Trawick <trawick@apache.org>
Tue, 13 Feb 2001 12:13:33 +0000 (12:13 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 13 Feb 2001 12:13:33 +0000 (12:13 +0000)
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
modules/dav/main/props.c

index 11ef94e354f111680c0f709bb1299377f0d2bf7c..4a1afa3bb8538e5328b5a19b5b5d5daf66af8dcc 100644 (file)
@@ -68,6 +68,7 @@
 #include "apr_lib.h"
 
 #define APR_WANT_STRFUNC
+#define APR_WANT_BYTEFUNC
 #include "apr_want.h"
 
 #include "ap_config.h"
 #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,
index 848bc9ba7332937a62ad0b66033ad40e9d8af00b..49982189b96fe01614921daecc3743b407948875 100644 (file)
 #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"