bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] add winsock wrappers


From: Bruno Haible
Subject: Re: [PATCH 2/3] add winsock wrappers
Date: Mon, 6 Oct 2008 01:50:10 +0200
User-agent: KMail/1.5.4

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


2008-10-05  Bruno Haible  <address@hidden>

        * 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

[Prev in Thread] Current Thread [Next in Thread]