httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main props.c
Date Tue, 13 Feb 2001 12:13:34 GMT
trawick     01/02/13 04:13:34

  Modified:    modules/aaa mod_access.c
               modules/dav/main props.c
  Log:
  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 :)
  
  Revision  Changes    Path
  1.28      +1 -4      httpd-2.0/modules/aaa/mod_access.c
  
  Index: mod_access.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/aaa/mod_access.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- mod_access.c	2001/02/10 13:05:22	1.27
  +++ mod_access.c	2001/02/13 12:13:30	1.28
  @@ -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,
  
  
  
  1.25      +3 -6      httpd-2.0/modules/dav/main/props.c
  
  Index: props.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/props.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- props.c	2001/02/12 21:03:35	1.24
  +++ props.c	2001/02/13 12:13:33	1.25
  @@ -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"
   
  
  
  

Mime
View raw message