You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ti...@apache.org on 2010/02/08 07:57:04 UTC

svn commit: r907560 - /tomcat/jk/trunk/native/common/jk_connect.c

Author: timw
Date: Mon Feb  8 06:57:03 2010
New Revision: 907560

URL: http://svn.apache.org/viewvc?rev=907560&view=rev
Log:
Defining SHUT_RD on platforms that don't have it (i.e. Windows uses SD_RECEIVE).
r893452 started using this, which broke the build on Windows.

Modified:
    tomcat/jk/trunk/native/common/jk_connect.c

Modified: tomcat/jk/trunk/native/common/jk_connect.c
URL: http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_connect.c?rev=907560&r1=907559&r2=907560&view=diff
==============================================================================
--- tomcat/jk/trunk/native/common/jk_connect.c (original)
+++ tomcat/jk/trunk/native/common/jk_connect.c Mon Feb  8 06:57:03 2010
@@ -671,6 +671,7 @@
 #define MAX_SECS_TO_LINGER 30
 #endif
 #define SECONDS_TO_LINGER  2
+
 #ifndef SHUT_WR
 #ifdef SD_SEND
 #define SHUT_WR SD_SEND
@@ -679,6 +680,14 @@
 #endif
 #endif
 
+#ifndef SHUT_RD
+#ifdef SD_RECEIVE
+#define SHUT_RD SD_RECEIVE
+#else
+#define SHUT_RD 0x00
+#endif
+#endif
+
 /** Drain and close the socket
  * @param sd        socket to close
  * @param l         logger



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org