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 052772a2310220fecc1309d605422574427b1108..3c153a78142034a94d4b420f35f677cc6b9622ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
index 23621d1b449820d069fe537daf6969f69410f05d..ba3e05f591ee32019500011e5fa2db21bdda9847 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 27ee5d881bfd407cd7319da204d257394b0fc159..f5569c5b1c16cd3a8483358d7f6d5f11eee0a7bb 100644 (file)
@@ -9,6 +9,7 @@ m4/sockpfaf.m4
 
 Depends-on:
 include_next
+errno
 
 configure.ac:
 gl_HEADER_SYS_SOCKET