[前][次][番号順一覧][スレッド一覧]

ruby-changes:12531

From: usa <ko1@a...>
Date: Wed, 22 Jul 2009 10:02:21 +0900 (JST)
Subject: [ruby-changes:12531] Ruby:r24235 (trunk): * win32/win32.c (WSABUF): get rid of compile error on VC9 and mingw.

usa	2009-07-22 10:01:27 +0900 (Wed, 22 Jul 2009)

  New Revision: 24235

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24235

  Log:
    * win32/win32.c (WSABUF): get rid of compile error on VC9 and mingw.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24234)
+++ ChangeLog	(revision 24235)
@@ -1,3 +1,7 @@
+Wed Jul 22 10:00:53 2009  NAKAMURA Usaku  <usa@r...>
+
+	* win32/win32.c (WSABUF): get rid of compile error on VC9 and mingw.
+
 Wed Jul 22 02:33:57 2009  Keiju Ishitsuka  <keiju@e...>
 
 	* lib/irb.rb: forget svn commit.
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 24234)
+++ win32/win32.c	(revision 24235)
@@ -2816,7 +2816,7 @@
 				(struct sockaddr *)to, &tolen);
 }
 
-#ifndef WSAID_WSARECVMSG
+#if !defined(MSG_TRUNC) && !defined(__MINGW32__)
 typedef struct {
     SOCKADDR *name;
     int namelen;
@@ -2825,6 +2825,8 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]