From 6aba0903fbbd553bf8fc978ee9167829c5cd8cf9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 10 Oct 2008 03:57:05 +0200 Subject: [PATCH] Arrange to replace the close() function when needed. --- ChangeLog | 5 +++++ m4/close.m4 | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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], -- 2.11.0