From: Bruno Haible Date: Fri, 10 Oct 2008 01:57:05 +0000 (+0200) Subject: Arrange to replace the close() function when needed. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aba0903fbbd553bf8fc978ee9167829c5cd8cf9;p=pspp Arrange to replace the close() function when needed. --- diff --git a/ChangeLog b/ChangeLog index 40ca081f72..d7dc92bd38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/m4/close.m4 b/m4/close.m4 index edfcfec59a..0a773af001 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],