diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 01:01:27 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 01:01:27 +0000 |
commit | 681dce6bfefc2f4cb4adedce884e91d97e50b321 (patch) | |
tree | 0f26bccea7d9c2e85e007af1212bffe643533da7 /win32 | |
parent | 2e4ad56fc2139991cb6e90df1f7bfd1cfbe49f00 (diff) | |
download | ruby-681dce6bfefc2f4cb4adedce884e91d97e50b321.tar.gz |
* win32/win32.c (WSABUF): get rid of compile error on VC9 and mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 4 |
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 |