You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2001/02/12 22:03:36 UTC

cvs commit: httpd-2.0/modules/dav/main props.c

trawick     01/02/12 13:03:36

  Modified:    server   vhost.c
               modules/dav/main props.c
  Log:
  include <arpa/inet.h> for the declarations for htons() et al; OS/390 has
  macros in arpa/inet.h which turn such "calls" into nothing and does not
  have functions to link against in libc
  
  Revision  Changes    Path
  1.55      +4 -0      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- vhost.c	2001/02/10 13:05:29	1.54
  +++ vhost.c	2001/02/12 21:03:32	1.55
  @@ -77,6 +77,10 @@
   #include "http_protocol.h"
   #include "http_core.h"
   
  +#if APR_HAVE_ARPA_INET_H
  +#include <arpa/inet.h>
  +#endif
  +
   /*
    * After all the definitions there's an explanation of how it's all put
    * together.
  
  
  
  1.24      +3 -0      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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- props.c	2001/01/20 11:29:35	1.23
  +++ props.c	2001/02/12 21:03:35	1.24
  @@ -184,6 +184,9 @@
   #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
   
   #include "mod_dav.h"
   
  
  
  

Re: cvs commit: httpd-2.0/modules/dav/main props.c

Posted by Jeff Trawick <tr...@bellsouth.net>.
Greg Stein <gs...@lyra.org> writes:

> On Mon, Feb 12, 2001 at 09:03:36PM -0000, trawick@apache.org wrote:
> > trawick     01/02/12 13:03:36
> > 
> >   Modified:    server   vhost.c
> >                modules/dav/main props.c
> >   Log:
> >   include <arpa/inet.h> for the declarations for htons() et al; OS/390 has
> >   macros in arpa/inet.h which turn such "calls" into nothing and does not
> >   have functions to link against in libc
> 
> Hrm. I should just take them out of mod_dav. The property databases are not
> portable, so there isn't much use in byte-swapping only a few
> pieces.

Oops... I just saw this comment after I made yet another change to
props.c related to byteswapping.  But at least the temporary use of it
showed me a warning on FreeBSD which convinced me that apr_want.h
should help out here :)

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: cvs commit: httpd-2.0/modules/dav/main props.c

Posted by Greg Stein <gs...@lyra.org>.
On Mon, Feb 12, 2001 at 09:03:36PM -0000, trawick@apache.org wrote:
> trawick     01/02/12 13:03:36
> 
>   Modified:    server   vhost.c
>                modules/dav/main props.c
>   Log:
>   include <arpa/inet.h> for the declarations for htons() et al; OS/390 has
>   macros in arpa/inet.h which turn such "calls" into nothing and does not
>   have functions to link against in libc

Hrm. I should just take them out of mod_dav. The property databases are not
portable, so there isn't much use in byte-swapping only a few pieces.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/