9l: link with -lresolv on Linux LGTM=rsc R=rsc https://codereview.appspot.com/136520044
diff --git a/bin/9l b/bin/9l index d07bd89..0b57319 100755 --- a/bin/9l +++ b/bin/9l
@@ -38,7 +38,7 @@ *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 f7587ad..b9661be 100644 --- a/src/libndb/sysdnsquery.c +++ b/src/libndb/sysdnsquery.c
@@ -9,8 +9,6 @@ #include <ndb.h> #include "ndbhf.h" -AUTOLIB(resolv) - static void nstrcpy(char*, char*, int); static void mkptrname(char*, char*, int); static Ndbtuple *doquery(char*, char*);