summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 6b5bd304b9..02645b2d93 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2816,7 +2816,7 @@ rb_w32_sendto(int fd, const char *buf, int len, int flags,
(struct sockaddr *)to, &tolen);
}
-#ifndef WSAID_WSARECVMSG
+#if !defined(MSG_TRUNC) && !defined(__MINGW32__)
typedef struct {
SOCKADDR *name;
int namelen;
@@ -2825,6 +2825,8 @@ typedef struct {
WSABUF Control;
DWORD dwFlags;
} WSAMSG;
+#endif
+#ifndef WSAID_WSARECVMSG
#define WSAID_WSARECVMSG {0xf689d7c8,0x6f1f,0x436b,{0x8a,0x53,0xe5,0x4f,0xe3,0x51,0xc3,0x22}}
#endif
#ifndef WSAID_WSASENDMSG