Changeset 8927 for trunk/src


Ignore:
Timestamp:
Jul 26, 2002, 7:18:30 PM (23 years ago)
Author:
sandervl
Message:

Use gethostname from wsock32, not the OS/2 version

Location:
trunk/src/iphlpapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/iphlpapi/iphlpapi.cpp

    r8303 r8927  
    1 /* $Id: iphlpapi.cpp,v 1.8 2002-04-28 15:46:31 sandervl Exp $ */
     1/* $Id: iphlpapi.cpp,v 1.9 2002-07-26 17:18:29 sandervl Exp $ */
    22/*
    33 *      IPHLPAPI library
     
    7373
    7474#pragma pack()
     75
     76//We don't want to use the OS2 version directly, but the one in wsock32
     77int WIN32API ODIN_gethostname (char * name, int namelen);
    7578
    7679ODINDEBUGCHANNEL(IPHLPAPI-IPHLPAPI)
     
    453456  memset(pFixedInfo,0,memNeeded);
    454457 
    455   gethostname(fi->HostName,128);
     458  ODIN_gethostname(fi->HostName,128);
    456459  strcpy(fi->DomainName,_res.defdname);
    457460
  • trunk/src/iphlpapi/iphlpapi.def

    r5792 r8927  
    1 ; $Id: iphlpapi.def,v 1.1 2001-05-24 17:35:34 sandervl Exp $
     1; $Id: iphlpapi.def,v 1.2 2002-07-26 17:18:30 sandervl Exp $
    22
    33LIBRARY IPHLPAPI INITINSTANCE
     
    88 GetAdaptersInfo  = _GetAdaptersInfo@8                    @17
    99 GetNetworkParams = _GetNetworkParams@8                   @38
     10
     11;to tell the linker to look elsewhere for this function
     12 _ODIN_gethostname@8 = _gethostname@8                     @50
     13
  • trunk/src/iphlpapi/makefile

    r7973 r8927  
    1 # $Id: makefile,v 1.3 2002-02-20 11:57:31 sandervl Exp $
     1# $Id: makefile,v 1.4 2002-07-26 17:18:30 sandervl Exp $
    22
    33#
     
    3333so32dll.lib \
    3434tcp32dll.lib \
     35$(ODIN32_LIB)/wsock32.lib \
    3536$(RTLLIB_O)
    3637
Note: See TracChangeset for help on using the changeset viewer.