VirtualBox

Changeset 51582 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 9, 2014 10:47:09 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94287
Message:

NAT/Net: Drop errno redefinition kludge, socket errors are now
accessed via wrapper macro on both unix and windows.

Location:
trunk/src/VBox/NetworkServices/NAT
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/NAT/proxy_tftpd.c

    r51574 r51582  
    22#define LOG_GROUP LOG_GROUP_NAT_SERVICE
    33
    4 #define _USE_WINSTD_ERRNO
    5 /* XXX: replace POSIX file operations with IPRT, to avoid hacks with errno renamings */
    64#include "winutils.h"
    75
  • trunk/src/VBox/NetworkServices/NAT/winutils.h

    r51581 r51582  
    3838
    3939#  define SOCKERRNO() (WSAGetLastError())
    40 
    41 /**
    42  * tftpd emulation we're using POSIX operations which needs "DOS errno". see proxy_tftpd.c
    43  */
    44 #  ifndef _USE_WINSTD_ERRNO
    45 /**
    46  * http://msdn.microsoft.com/en-us/library/windows/desktop/ms737828(v=vs.85).aspx
    47  * "Error Codes - errno, h_errno and WSAGetLastError" says "Error codes set by Windows Sockets are
    48  *  not made available through the errno variable."
    49  */
    50 #   include <errno.h>
    51 #   ifdef errno
    52 #    undef errno
    53 #   endif
    54 #   define errno (WSAGetLastError())
    55 #  endif
    56 /* Missing errno codes */
    5740
    5841/**
Note: See TracChangeset for help on using the changeset viewer.

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