diff --git a/bin/9l b/bin/9l index d07bd892..0b57319d 100755 --- a/bin/9l +++ b/bin/9l @@ -38,7 +38,7 @@ case "$tag" in *Linux*) ld=${CC9:-gcc} userpath=true - extralibs="$extralibs -lutil" + extralibs="$extralibs -lutil -lresolv" case "${SYSVERSION:-`uname -r`}" in 2.6.* | 3.*) extralibs="$extralibs -lpthread" diff --git a/src/libndb/sysdnsquery.c b/src/libndb/sysdnsquery.c index f7587ad9..b9661be1 100644 --- a/src/libndb/sysdnsquery.c +++ b/src/libndb/sysdnsquery.c @@ -9,8 +9,6 @@ #include #include "ndbhf.h" -AUTOLIB(resolv) - static void nstrcpy(char*, char*, int); static void mkptrname(char*, char*, int); static Ndbtuple *doquery(char*, char*);