bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] use gnulib modules close (new) and open to hook into open/cl


From: Bruno Haible
Subject: Re: [PATCH] use gnulib modules close (new) and open to hook into open/close
Date: Fri, 10 Oct 2008 03:56:47 +0200
User-agent: KMail/1.5.4

Oops, there was a missing link here: When the 'close' module and the
'sys_socket' module are present, then on a mingw system, close() must be
replaced - regardless of whether fchdir has requested a replacement for
close() or not. This should do it.


2008-10-09  Bruno Haible  <address@hidden>

        * 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>.

*** m4/close.m4.orig    2008-10-10 03:52:21.000000000 +0200
--- m4/close.m4 2008-10-10 03:51:39.000000000 +0200
***************
*** 6,12 ****
  
  AC_DEFUN([gl_FUNC_CLOSE],
  [
!   :
  ])
  
  AC_DEFUN([gl_REPLACE_CLOSE],
--- 6,17 ----
  
  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],





reply via email to

[Prev in Thread] Current Thread [Next in Thread]