hgomez      2004/07/13 04:08:17

  Modified:    jk/native/common jk_connect.c
  Log:
  Make sure iSeries won't complain about invalid sa_len.

  

  Should add BSD 4.4/Unix98 defines here also
  
  Revision  Changes    Path
  1.24      +6 -1      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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- jk_connect.c      13 Jul 2004 07:32:58 -0000      1.23
  +++ jk_connect.c      13 Jul 2004 11:08:17 -0000      1.24
  @@ -143,6 +143,11 @@
               jk_log(l, JK_LOG_DEBUG, "jk_open_socket, try to connect socket = %d to 
%s\n", 
                      sock, jk_dump_hinfo(addr, buf));
                      
  +/* Need more infos for BSD 4.4 and Unix 98 defines, for now only 
  +   iSeries when Unix98 is required at compil time */
  +#if (_XOPEN_SOURCE >= 520)
  +            ((struct sockaddr *)addr)->sa_len = sizeof(struct sockaddr_in));
  +#endif 
               ret = connect(sock,
                             (struct sockaddr *)addr,
                             sizeof(struct sockaddr_in));
  
  
  

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

Reply via email to