[exim-cvs] cvs commit: exim/exim-src/src host.c

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] cvs commit: exim/exim-src/src host.c
ph10 2005/10/03 10:51:04 BST

  Modified files:
    exim-src/src         host.c 
  Log:
  Missing #if HAVE_IPV6 conditional.


  Revision  Changes    Path
  1.16      +6 -1      exim/exim-src/src/host.c


  Index: host.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/host.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- host.c    19 Sep 2005 10:13:39 -0000    1.15
  +++ host.c    3 Oct 2005 09:51:04 -0000    1.16
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/host.c,v 1.15 2005/09/19 10:13:39 ph10 Exp $ */
  +/* $Cambridge: exim/exim-src/src/host.c,v 1.16 2005/10/03 09:51:04 ph10 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -167,8 +167,13 @@
   static struct hostent *
   host_fake_gethostbyname(uschar *name, int af, int *error_num)
   {
  -int ipa;
  +#if HAVE_IPV6
   int alen = (af == AF_INET)? sizeof(struct in_addr):sizeof(struct in6_addr);
  +#else
  +int alen = sizeof(struct in_addr);
  +#endif
  +
  +int ipa;
   uschar *lname = name;
   uschar *adds;
   uschar **alist;