bug-gnulib
[Top][All Lists]
Advanced

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

AC 2.59 incompatibility in getaddrinfo.h (was Re: canon-host errors)


From: Derek Price
Subject: AC 2.59 incompatibility in getaddrinfo.h (was Re: canon-host errors)
Date: Thu, 08 Sep 2005 11:55:00 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

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.

Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>






reply via email to

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