VirtualBox

Ignore:
Timestamp:
Nov 28, 2013 6:05:58 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90965
Message:

Provide some cmsghdr compat. CMSG_FIRSTHDR/CMSG_NXTHDR are not yet
provided - they take WSAMSG argument (which uses different field
names), so for them additional uglification is required to hide
differences from msghdr.

File:
1 edited

Legend:

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

    r49694 r49695  
    128128#  define IOVEC_SET_LEN(iov, l) ((iov).len = (ULONG)(l))
    129129
     130#if _WIN32_WINNT < 0x0600
     131/* otherwise defined the other way around in ws2def.h */
     132#define cmsghdr _WSACMSGHDR
     133
     134#undef CMSG_DATA       /* wincrypt.h can byte my shiny metal #undef */
     135#define CMSG_DATA WSA_CMSG_DATA
     136#define CMSG_LEN WSA_CMSG_LEN
     137#define CMSG_SPACE WSA_CMSG_SPACE
     138#endif  /* _WIN32_WINNT < 0x0600 - provide unglified CMSG names */
     139
    130140RT_C_DECLS_BEGIN
    131141int RTWinSocketPair(int domain, int type, int protocol, SOCKET socket_vector[2]);
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