You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2002/02/12 22:57:13 UTC

cvs commit: apr/network_io/unix inet_ntop.c inet_pton.c

wrowe       02/02/12 13:57:13

  Modified:    network_io/unix inet_ntop.c inet_pton.c
  Log:
    Two very safe have-header tests for the WinCE port,
    submitted by Mladen Turk <mt...@mappingsoft.com>
  
  Revision  Changes    Path
  1.13      +2 -0      apr/network_io/unix/inet_ntop.c
  
  Index: inet_ntop.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/inet_ntop.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- inet_ntop.c	25 Jul 2001 19:47:50 -0000	1.12
  +++ inet_ntop.c	12 Feb 2002 21:57:12 -0000	1.13
  @@ -31,7 +31,9 @@
   #include <arpa/inet.h>
   #endif
   #include <string.h>
  +#if APR_HAVE_ERRNO_H
   #include <errno.h>
  +#endif
   #include <stdio.h>
   
   #ifndef IN6ADDRSZ
  
  
  
  1.6       +2 -0      apr/network_io/unix/inet_pton.c
  
  Index: inet_pton.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/inet_pton.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- inet_pton.c	16 Mar 2001 03:22:04 -0000	1.5
  +++ inet_pton.c	12 Feb 2002 21:57:13 -0000	1.6
  @@ -30,7 +30,9 @@
   #include <arpa/inet.h>
   #endif
   #include <string.h>
  +#if APR_HAVE_ERRNO_H
   #include <errno.h>
  +#endif
   
   #ifndef IN6ADDRSZ
   #define IN6ADDRSZ   16