Changeset 6bb9a6


Ignore:
Timestamp:
05/28/09 22:13:37 (3 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master
Children:
9d8467
Parents:
fcc91c
git-author:
Tomash Brechko <tomash.brechko@…> (05/23/09 16:46:13)
git-committer:
Tomash Brechko <tomash.brechko@…> (05/28/09 22:13:37)
Message:

On systems lacking getaddrinfo() implement it with gethostbyname().

Problem report and initial patch are by Yasuhiro Matsumoto.

Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • Changes

    r8126ae r6bb9a6  
    77        Changes since 0.14: 
    88 
    9         ??? 
     9        On systems lacking getaddrinfo() implement it with 
     10        gethostbyname(). In particular this should fix the build on 
     11        Win32 (Cygwin, Mingw32).  Problem report (for Windows 2000 and 
     12        below) and initial patch are by Yasuhiro Matsumoto. 
    1013 
    1114 
  • src/Makefile.PL

    rf0c0ca r6bb9a6  
    1313} else { 
    1414    ++$exclude{'socket_win32.c'}; 
     15    ++$exclude{'addrinfo_hostent.c'}; 
    1516 
    1617    if (-f "$includes/poll.h") { 
  • src/socket_win32.h

    rb495a1 r6bb9a6  
    11/* 
    2   Copyright (C) 2008 Tomash Brechko.  All rights reserved. 
     2  Copyright (C) 2008-2009 Tomash Brechko.  All rights reserved. 
    33 
    44  When used to build Perl module: 
     
    2525#define SOCKET_WIN32_H 1 
    2626 
    27 #ifndef _WIN32_WINNT 
    28 #define _WIN32_WINNT 0x0501 
    29 #endif 
    3027#include <winsock2.h> 
    3128#include <ws2tcpip.h> 
    3229#include <sys/types.h> 
     30 
     31 
     32#if _WIN32_WINNT >= 0x0501 
     33 
     34#include <wspiapi.h> 
     35 
     36#else  /* ! (_WIN32_WINNT >= 0x0501) */ 
     37 
     38#include "addrinfo_hostent.h" 
     39 
     40#endif  /* ! (_WIN32_WINNT >= 0x0501) */ 
     41 
    3342 
    3443#if _WIN32_WINNT >= 0x0600 
Note: See TracChangeset for help on using the changeset viewer.