Changeset 3982

Show
Ignore:
Timestamp:
03/30/07 18:26:06 (7 years ago)
Author:
piers
Message:

Added conditional header files for inet_pton and inet_notp - from common. And removed unused variable "hp".

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/net/inet6.c

    r1015 r3982  
    3030#include <ctype.h> 
    3131#ifdef WIN32 
    32 //#include <winsock.h> 
     32//#include <winsock2.h> 
    3333#else 
    3434#include <sys/param.h> 
     
    4242#include "inet6.h" 
    4343 
    44 #ifdef NEED_ADDRINFO_H 
     44#ifdef NEED_INET_PTON 
     45#include "inet_pton.h" 
     46#endif 
     47 
     48#ifdef NEED_INET_NTOP 
     49#include "inet_ntop.h" 
     50#endif 
     51 
     52#ifdef NEED_ADDRINFO 
    4553#include "addrinfo.h" 
    4654#endif 
     
    4957inet6_LookupHostAddr(struct in6_addr *addr, const char* hostname) { 
    5058  if (inet_pton(AF_INET6, hostname, addr->s6_addr) != 1) { 
    51     struct hostent *hp; 
    5259    struct addrinfo hints, *ai; 
    5360    int i;