Arrange to replace the close() function when needed.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Oct 2008 01:57:05 +0000 (03:57 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Oct 2008 01:57:05 +0000 (03:57 +0200)
ChangeLog
m4/close.m4

index 40ca081f720137da9d879a7afae5cd3bd76aef21..d7dc92bd3801020c57857479fef0b6d26fcbd3d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-09  Bruno Haible  <bruno@clisp.org>
+
+       * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function when
+       the sys_socket module is present and the system has <winsock2.h>.
+
 2008-10-09  Bruno Haible  <bruno@clisp.org>
 
        * doc/posix-functions/close.texi: Mention module 'close' instead of
index edfcfec59accd6d29ace135c002ca5adf29603f8..0a773af001c4b4e8479e52fe4d471782adde2945 100644 (file)
@@ -6,7 +6,12 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_CLOSE],
 [
-  :
+  m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [
+    gl_PREREQ_SYS_H_WINSOCK2
+    if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
+      gl_REPLACE_CLOSE
+    fi
+  ])
 ])
 
 AC_DEFUN([gl_REPLACE_CLOSE],