I'm applying these (obvious) tweaks. The 'errno' module is needed because
of the reference to EWOULDBLOCK added recently.


2008-10-05  Bruno Haible  <[EMAIL PROTECTED]>

        * lib/winsock.c (strerror): Remove unused #undef.
        (rpl_close): Remove unused local variable.
        * modules/sys_socket (Depends-on); Add errno.

*** lib/winsock.c.orig  2008-10-06 01:45:07.000000000 +0200
--- lib/winsock.c       2008-10-06 01:44:44.000000000 +0200
***************
*** 39,45 ****
  #undef recvfrom
  #undef sendto
  #undef setsockopt
- #undef strerror
  
  # define FD_TO_SOCKET(fd)   ((SOCKET) _get_osfhandle ((fd)))
  # define SOCKET_TO_FD(fh)   (_open_osfhandle ((long) (fh), O_RDWR | O_BINARY))
--- 39,44 ----
***************
*** 50,56 ****
  int
  rpl_close (int fd)
  {
-   char buf[sizeof (int)];
    SOCKET sock = FD_TO_SOCKET (fd);
    WSANETWORKEVENTS ev;
  
--- 49,54 ----
*** modules/sys_socket.orig     2008-10-06 01:45:07.000000000 +0200
--- modules/sys_socket  2008-10-06 01:44:58.000000000 +0200
***************
*** 9,14 ****
--- 9,15 ----
  
  Depends-on:
  include_next
+ errno
  
  configure.ac:
  gl_HEADER_SYS_SOCKET



Reply via email to