Tiny tweaks.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2008 23:49:54 +0000 (01:49 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2008 23:49:54 +0000 (01:49 +0200)
ChangeLog
lib/winsock.c
modules/sys_socket

index 052772a..3c153a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-10-05  Bruno Haible  <bruno@clisp.org>
 
+       * lib/winsock.c (strerror): Remove unused #undef.
+       (rpl_close): Remove unused local variable.
+
+       * modules/sys_socket (Depends-on); Add errno.
+
+2008-10-05  Bruno Haible  <bruno@clisp.org>
+
        * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
        (select): Add a link warning when the 'select' module is not used.
        * modules/sys_select (Depends-on): Add link-warning.
index 23621d1..ba3e05f 100644 (file)
@@ -39,7 +39,6 @@
 #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))
@@ -50,7 +49,6 @@
 int
 rpl_close (int fd)
 {
-  char buf[sizeof (int)];
   SOCKET sock = FD_TO_SOCKET (fd);
   WSANETWORKEVENTS ev;
 
index 27ee5d8..f5569c5 100644 (file)
@@ -9,6 +9,7 @@ m4/sockpfaf.m4
 
 Depends-on:
 include_next
+errno
 
 configure.ac:
 gl_HEADER_SYS_SOCKET