apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Tue, 15 Oct 2002 11:19:00 GMT
trawick     2002/10/15 04:19:00

  Modified:    network_io/unix sa_common.c
  Log:
  get it to compile (hopefully) on some systems without getaddrinfo()
  
  related trivia: disabling getaddrinfo() support on Linux has failed for
  some time because the correct reentrant gethostbyname flavor isn't being used
  or it is coded incorrectly
  
  Revision  Changes    Path
  1.67      +6 -6      apr/network_io/unix/sa_common.c
  
  Index: sa_common.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- sa_common.c	15 Oct 2002 11:06:36 -0000	1.66
  +++ sa_common.c	15 Oct 2002 11:19:00 -0000	1.67
  @@ -476,16 +476,16 @@
   #else
               switch (h_errno) {
   #ifdef NETDB_INTERNAL
  -                NETDB_INTERNAL:
  +                case NETDB_INTERNAL:
                       return APR_FROM_OS_ERROR(errno);
   #endif
  -                HOST_NOT_FOUND:
  +                case HOST_NOT_FOUND:
                       return APR_EHOSTUNREACH;
  -                NO_DATA:
  -                    return APR_E;
  -                NO_RECOVERY:
  +                case NO_DATA:
  +                    return 11111 /* APR_E */;
  +                case NO_RECOVERY:
                       return APR_EHOSTUNREACH;
  -                TRY_AGAIN:
  +                case TRY_AGAIN:
                       return APR_EAGAIN;
               }
               /* return (h_errno + APR_OS_START_SYSERR); */
  
  
  

Mime
View raw message