need -lresolv on MacOSX 10.6

Darren Tucker dtucker at
Fri Sep 11 14:56:44 EST 2009

Jim Basney wrote:
> OpenSSH's configure script tests for res_query with
> AC_TRY_LINK_FUNC(res_query, ...) which doesn't #include <resolv.h>, so
> it doesn't detect that -lresolv is needed for res_9_query. The attached
> patch is my attempt to fix it.

Seems reasonable to me.  Committed, thanks!

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list