VirtualBox

Changeset 4438 in vbox for trunk


Ignore:
Timestamp:
Aug 30, 2007 9:29:17 AM (17 years ago)
Author:
vboxsync
Message:

more fixes, darwin

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r4437 r4438  
    157157
    158158src/HappyHttp.cpp_CXXFLAGS.linux += -fexceptions
     159src/HappyHttp.cpp_CXXFLAGS.darwin += -fexceptions
    159160src/VBoxDownloaderWgt.cpp_CXXFLAGS.linux += -fexceptions
     161src/VBoxDownloaderWgt.cpp_CXXFLAGS.darwin += -fexceptions
    160162
    161163## @todo how to detect what tool is used?
  • trunk/src/VBox/Frontends/VirtualBox/src/HappyHttp.cpp

    r4436 r4438  
    2828#include "HappyHttp.h"
    2929
    30 #ifndef __WIN32__
     30#ifndef RT_OS_WINDOWS
    3131//  #include <sys/types.h>
    3232    #include <sys/socket.h>
     
    3737#endif
    3838
    39 #ifdef __WIN32__
     39#ifdef RT_OS_WINDOWS
    4040    #include <winsock2.h>
    4141    #define vsnprintf _vsnprintf
     
    6262{
    6363
    64 #ifdef __WIN32__
     64#ifdef RT_OS_WINDOWS
    6565const char* GetWinsockErrorString( int err );
    6666#endif
     
    7575void BailOnSocketError( const char* context )
    7676{
    77 #ifdef __WIN32__
     77#ifdef RT_OS_WINDOWS
    7878
    7979    int e = WSAGetLastError();
     
    8686
    8787
    88 #ifdef __WIN32__
     88#ifdef RT_OS_WINDOWS
    8989
    9090const char* GetWinsockErrorString( int err )
     
    147147};
    148148
    149 #endif // __WIN32__
     149#endif // RT_OS_WINDOWS
    150150
    151151
     
    181181    // First try nnn.nnn.nnn.nnn form
    182182    saddr.s_addr = inet_addr(address);
    183     if (saddr.s_addr != (in_addr_t)-1)
     183    if (saddr.s_addr != INADDR_NONE)
    184184        return &saddr;
    185185
     
    277277void Connection::close()
    278278{
    279 #ifdef __WIN32__
     279#ifdef RT_OS_WINDOWS
    280280    if( m_Sock >= 0 )
    281281        ::closesocket( m_Sock );
     
    417417    while( numbytes > 0 )
    418418    {
    419 #ifdef __WIN32__
     419#ifdef RT_OS_WINDOWS
    420420        int n = ::send( m_Sock, (const char*)buf, numbytes, 0 );
    421421#else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette