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: Sat, 11 Oct 2008 13:35:26 +0200
User-agent: KMail/1.5.4

>   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
> !   ])
>   ])

I'm not so happy with this code. If we create a tests directory where
the 'close' module is part of lib/ and 'sys_socket' is part of tests/,
the code in lib/ will be compiled in a way that does not invoke the
_gl_close_fd_maybe_socket function in tests/.

But I don't have a good solution for it. Any ideas?

Bruno





reply via email to

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