[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC 2.59 incompatibility in getaddrinfo.h
From: |
Simon Josefsson |
Subject: |
Re: AC 2.59 incompatibility in getaddrinfo.h |
Date: |
Thu, 08 Sep 2005 22:11:14 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Derek Price <address@hidden> writes:
> Is there any reason I can't just assume gl_GETADDRINFO ran and config.h
> was included before getaddrinfo.h? The following test is always coming
> up false on platforms without getaddrinfo (as of AC 2.59, at least,
> AC_CHECK_FUNCS via AC_REPLACE_FUNCS leaves HAVE_GETADDRINFO undefined
> when it is not found):
>
> # if defined HAVE_GETADDRINFO && !HAVE_GETADDRINFO
>
> [...decl struct addrinfo & many macros...]
>
> # endif
>
>
> The possible fixes are fixing gl_GETADDRINFO to "#define
> HAVE_GETADDRINFO 0" when getaddrinfo isn't found or shortening the above
> test to: "# if !HAVE_GETADDRINFO", and I'd rather just simplify the
> header unless there is good reason to leave it as is, especially as
> other naive code with GNULIB installed may be already using "#ifdef
> HAVE_GETADDRINFO" somewhere.
I used that style in the header file because the automake manual
suggested it, but in gnulib I now think simply using #if
!HAVE_GETADDRINFO would be fine.
- Re: canon-host errors, (continued)
- Re: canon-host errors, Derek Price, 2005/09/04
- Re: canon-host errors, Jim Meyering, 2005/09/04
- Re: canon-host errors, Derek Price, 2005/09/04
- Re: canon-host errors, Derek Price, 2005/09/04
- Re: canon-host errors, Derek Price, 2005/09/04
- Re: canon-host errors, Jim Meyering, 2005/09/04
- Re: canon-host errors, Derek Price, 2005/09/04
- AC 2.59 incompatibility in getaddrinfo.h (was Re: canon-host errors), Derek Price, 2005/09/08
- Re: AC 2.59 incompatibility in getaddrinfo.h, Paul Eggert, 2005/09/08
- Re: AC 2.59 incompatibility in getaddrinfo.h, Derek Price, 2005/09/08
- Re: AC 2.59 incompatibility in getaddrinfo.h,
Simon Josefsson <=
- Re: canon-host errors, Jim Meyering, 2005/09/04
- Re: canon-host errors, Derek Price, 2005/09/05
- Re: canon-host errors, Simon Josefsson, 2005/09/06
- Re: canon-host errors, Derek Price, 2005/09/13
- Re: canon-host errors, Jim Meyering, 2005/09/13
- Re: canon-host errors, Derek Price, 2005/09/13