Cygwin: drop macro and code for CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
dcd78ece45
commit
741f9a61c6
|
@ -1316,8 +1316,7 @@ fhandler_socket_wsock::recvmsg (struct msghdr *msg, int flags)
|
||||||
{
|
{
|
||||||
msg->msg_namelen = wsamsg.namelen;
|
msg->msg_namelen = wsamsg.namelen;
|
||||||
msg->msg_controllen = wsamsg.Control.len;
|
msg->msg_controllen = wsamsg.Control.len;
|
||||||
if (!CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR)
|
msg->msg_flags = wsamsg.dwFlags;
|
||||||
msg->msg_flags = wsamsg.dwFlags;
|
|
||||||
/* if a UDP_GRO packet is present, convert gso_size from Windows DWORD
|
/* if a UDP_GRO packet is present, convert gso_size from Windows DWORD
|
||||||
to Linux-compatible uint16_t. We don't have to change the
|
to Linux-compatible uint16_t. We don't have to change the
|
||||||
msg_control block layout for that, assuming applications do as they
|
msg_control block layout for that, assuming applications do as they
|
||||||
|
|
|
@ -34,9 +34,6 @@ details. */
|
||||||
#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
|
#define CYGWIN_VERSION_USER_API_VERSION_COMBINED \
|
||||||
CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
|
CYGWIN_VERSION_PER_PROCESS_API_VERSION_COMBINED (user_data)
|
||||||
|
|
||||||
#define CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR \
|
|
||||||
(CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138)
|
|
||||||
|
|
||||||
#define CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES \
|
#define CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES \
|
||||||
(CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138)
|
(CYGWIN_VERSION_USER_API_VERSION_COMBINED <= 138)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue