[Date Prev][Date Next]
Re: (ITS#3626) res_query and Mac OS X
Thanks for the contribution. I've committed what I think
might be a more robust detection of res_query to HEAD.
Please test. -- Kurt
At 06:39 AM 4/2/2005, firstname.lastname@example.org wrote:
>Full_Name: Finlay Dobbie
>OS: Mac OS X v10.3
>Submission from: (NULL) (188.8.131.52)
>At the indicated URL is a patch which resolves the issue referred to in the FAQ
>Mac OS X v10.3 (Darwin 8) and later ship with both the BIND 8 and BIND 9 APIs.
>The BIND 8 API is in libSystem, and thus is picked up by autoconf's check for
>res_query. However, resolv.h defaults to the BIND 9 API, which is provided by
>libresolv. The workaround is either to #define BIND_8_COMPAT or add -lresolv to
>The attached patch uses AC_TRY_LINK to attempt to link a small program which
>attempts to call res_query, and if it fails, tries again with -lresolv.