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

ruby-changes:15617

From: nobu <ko1@a...>
Date: Wed, 28 Apr 2010 16:16:47 +0900 (JST)
Subject: [ruby-changes:15617] Ruby:r27526 (trunk): * ext/socket/rubysocket.h: non-implemented method definitions need

nobu	2010-04-28 16:16:30 +0900 (Wed, 28 Apr 2010)

  New Revision: 27526

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

  Log:
    * ext/socket/rubysocket.h: non-implemented method definitions need
      to be shared.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/ancdata.c
    trunk/ext/socket/rubysocket.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27525)
+++ ChangeLog	(revision 27526)
@@ -1,3 +1,8 @@
+Wed Apr 28 16:16:26 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/socket/rubysocket.h: non-implemented method definitions need
+	  to be shared.
+
 Wed Apr 28 10:27:33 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* vsnprintf.c (ruby_vsnprintf, ruby_snprintf): suppress warnings.
Index: ext/socket/rubysocket.h
===================================================================
--- ext/socket/rubysocket.h	(revision 27525)
+++ ext/socket/rubysocket.h	(revision 27526)
@@ -263,10 +263,16 @@
 #if defined(HAVE_SENDMSG)
 VALUE rsock_bsock_sendmsg(int argc, VALUE *argv, VALUE sock);
 VALUE rsock_bsock_sendmsg_nonblock(int argc, VALUE *argv, VALUE sock);
+#else
+#define rsock_bsock_sendmsg rb_f_notimplement
+#define rsock_bsock_sendmsg_nonblock rb_f_notimplement
 #endif
 #if defined(HAVE_RECVMSG)
 VALUE rsock_bsock_recvmsg(int argc, VALUE *argv, VALUE sock);
 VALUE rsock_bsock_recvmsg_nonblock(int argc, VALUE *argv, VALUE sock);
+#else
+#define rsock_bsock_recvmsg rb_f_notimplement
+#define rsock_bsock_recvmsg_nonblock rb_f_notimplement
 #endif
 
 #ifdef HAVE_ST_MSG_CONTROL
Index: ext/socket/ancdata.c
===================================================================
--- ext/socket/ancdata.c	(revision 27525)
+++ ext/socket/ancdata.c	(revision 27526)
@@ -1330,8 +1330,6 @@
 {
     return bsock_sendmsg_internal(argc, argv, sock, 0);
 }
-#else
-#define rsock_bsock_sendmsg rb_f_notimplement
 #endif
 
 #if defined(HAVE_SENDMSG)
@@ -1351,8 +1349,6 @@
 {
     return bsock_sendmsg_internal(argc, argv, sock, 1);
 }
-#else
-#define bsock_sendmsg_nonblock rb_f_notimplement
 #endif
 
 #if defined(HAVE_RECVMSG)
@@ -1742,8 +1738,6 @@
 {
     return bsock_recvmsg_internal(argc, argv, sock, 0);
 }
-#else
-#define rsock_bsock_recvmsg rb_f_notimplement
 #endif
 
 #if defined(HAVE_RECVMSG)
@@ -1763,8 +1757,6 @@
 {
     return bsock_recvmsg_internal(argc, argv, sock, 1);
 }
-#else
-#define rsock_bsock_recvmsg_nonblock rb_f_notimplement
 #endif
 
 /*

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

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