From: Bruno Haible Date: Fri, 10 Oct 2008 01:57:05 +0000 (+0200) Subject: Arrange to replace the close() function when needed. X-Git-Tag: v0.1~6869 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=6aba0903fbbd553bf8fc978ee9167829c5cd8cf9;p=gnulib.git Arrange to replace the close() function when needed. --- diff --git a/ChangeLog b/ChangeLog index 40ca081f7..d7dc92bd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-10-09 Bruno Haible + * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function when + the sys_socket module is present and the system has . + +2008-10-09 Bruno Haible + * doc/posix-functions/close.texi: Mention module 'close' instead of module 'sys_socket'. diff --git a/m4/close.m4 b/m4/close.m4 index edfcfec59..0a773af00 100644 --- a/m4/close.m4 +++ b/m4/close.m4 @@ -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],