*** inet_pton.c.old	Wed Oct  8 13:05:46 2003
--- inet_pton.c	Wed Oct  8 19:22:36 2003
***************
*** 19,25 ****
  #include "setup.h"
  
  #ifndef HAVE_INET_PTON
! 
  #ifdef HAVE_SYS_PARAM_H
  #include <sys/param.h>
  #endif
--- 19,28 ----
  #include "setup.h"
  
  #ifndef HAVE_INET_PTON
! #if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
! #define EAFNOSUPPORT WSAEAFNOSUPPORT
! #include <winsock.h>
! #else
  #ifdef HAVE_SYS_PARAM_H
  #include <sys/param.h>
  #endif
***************
*** 35,40 ****
--- 38,44 ----
  #ifdef HAVE_ARPA_INET_H
  #include <arpa/inet.h>
  #endif
+ #endif
  #include <string.h>
  #include <errno.h>
  
***************
*** 51,58 ****
   * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.
   */
  
! static int	inet_pton4(const char *src, u_char *dst);
! static int	inet_pton6(const char *src, u_char *dst);
  
  /* int
   * inet_pton(af, src, dst)
--- 55,62 ----
   * sizeof(int) < 4.  sizeof(int) > 4 is fine; all the world's not a VAX.
   */
  
! static int	inet_pton4(const char *src, unsigned char *dst);
! static int	inet_pton6(const char *src, unsigned char *dst);
  
  /* int
   * inet_pton(af, src, dst)

