mturk       2005/04/27 11:38:52

  Modified:    jk/native/common jk_connect.c
  Log:
  Use SHUT_WR instead SD_SEND, to be more posix compilant.
  
  Revision  Changes    Path
  1.58      +9 -5      jakarta-tomcat-connectors/jk/native/common/jk_connect.c
  
  Index: jk_connect.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_connect.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- jk_connect.c      27 Apr 2005 06:18:11 -0000      1.57
  +++ jk_connect.c      27 Apr 2005 18:38:52 -0000      1.58
  @@ -464,10 +464,14 @@
   #define MAX_SECS_TO_LINGER 16
   #endif
   #define SECONDS_TO_LINGER  1
  -#ifndef SD_SEND
  -#define SD_SEND 0x01
  -#endif
   
  +#ifndef SHUT_WR
  +#ifdef SD_SEND
  +#define SHUT_WR SD_SEND
  +#else
  +#define SHUT_WR 0x01
  +#endif
  +#endif
   int jk_shutdown_socket(int s)
   {
       unsigned char dummy[512];
  @@ -485,7 +489,7 @@
       /* Shut down the socket for write, which will send a FIN
        * to the peer.
        */
  -    if (shutdown(s, SD_SEND)) {
  +    if (shutdown(s, SHUT_WR)) {
           return jk_close_socket(s);
       }
   #if defined(WIN32)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to