Changeset fcc91c


Ignore:
Timestamp:
05/23/09 16:48:20 (3 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master
Children:
6bb9a6
Parents:
442efc
git-author:
Tomash Brechko <tomash.brechko@…> (05/23/09 12:46:28)
git-committer:
Tomash Brechko <tomash.brechko@…> (05/23/09 16:48:20)
Message:

Set ai_family explicitly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/connect.c

    r02370d rfcc91c  
    11/* 
    2   Copyright (C) 2007-2008 Tomash Brechko.  All rights reserved. 
     2  Copyright (C) 2007-2009 Tomash Brechko.  All rights reserved. 
    33 
    44  When used to build Perl module: 
     
    3939 
    4040  memset(&hint, 0, sizeof(hint)); 
     41  hint.ai_family = AF_UNSPEC; 
     42  hint.ai_socktype = SOCK_STREAM; 
    4143#ifdef AI_ADDRCONFIG  /* NetBSD 3.1 doesn't have this.  */ 
    4244  hint.ai_flags = AI_ADDRCONFIG; 
    4345#endif /* AI_ADDRCONFIG */ 
    44   hint.ai_socktype = SOCK_STREAM; 
    4546  res = getaddrinfo(host, port, &hint, &addr); 
    4647  if (res != 0) 
Note: See TracChangeset for help on using the changeset viewer.