Changeset aac4017


Ignore:
Timestamp:
2008-08-12T11:04:37Z (16 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
2288705
Parents:
5d550c5
Message:

More hints for getaddrinfo().

Hopefully solves a problem on FreeBSD.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r5d550c5 raac4017  
    669669
    670670                memset( &hints, 0, sizeof ( struct addrinfo ) );
     671                hints.ai_socktype = SOCK_STREAM;
     672                hints.ai_flags = AI_NUMERICSERV;
     673
    671674                if ( ( gret = getaddrinfo( host, port, &hints, &rp ) ) )
    672675                {
  • lib/ftutil.c

    r5d550c5 raac4017  
    3636#define HOST_NAME_MAX 255
    3737#endif
    38 #endif
    39 
    40 #ifndef AI_NUMERICSERV
    41 #define AI_NUMERICSERV 0x0400   /* Don't use name resolution.  */
    4238#endif
    4339
  • lib/ftutil.h

    r5d550c5 raac4017  
    2222\***************************************************************************/
    2323
     24#ifndef AI_NUMERICSERV
     25#define AI_NUMERICSERV 0x0400   /* Don't use name resolution.  */
     26#endif
     27
    2428int ft_listen( struct sockaddr_storage *saddr_ptr, char *host, char *port, int for_bitlbee_client, char **errptr );
Note: See TracChangeset for help on using the changeset viewer.