VirtualBox

Changeset 49856 in vbox for trunk/src


Ignore:
Timestamp:
Dec 10, 2013 1:47:06 AM (11 years ago)
Author:
vboxsync
Message:

Redefine a few more socket errno values without WSA prefix. Note
"re-", since VC10 "helpfully" introduced definitions for them for
posix compatibility (except they forgot EHOSTDOWN).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/winutils.h

    r49707 r49856  
    9999
    100100/**
    101  * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx#WSAEHOSTDOWN
    102  * Corresponds to WSAEHOSTDOWN (10064) WSAGetLastError()
     101 * "Windows Sockets Error Codes" obtained with WSAGetLastError().
     102 * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx
    103103 */
    104 #  define EHOSTDOWN WSAEHOSTDOWN
    105 /**
    106  * http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx#WSAEHOSTUNREACH
    107  */
    108 #  define EHOSTUNREAH WSAEHOSTUNREACH
     104#  undef  EMSGSIZE
     105#  define EMSGSIZE              WSAEMSGSIZE
     106#  undef  ENETDOWN
     107#  define ENETDOWN              WSAENETDOWN
     108#  undef  ENETUNREACH
     109#  define ENETUNREACH           WSAENETUNREACH
     110#  undef  EHOSTDOWN
     111#  define EHOSTDOWN             WSAEHOSTDOWN
     112#  undef  EHOSTUNREACH
     113#  define EHOSTUNREACH          WSAEHOSTUNREACH
    109114
    110115/**
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