commit fd3496d3ef1b3f27c670c25278cbb0304f74a706
parent 738e890b19eb560e557197aa59598a5e08983a28
Author: David du Colombier <0intro@gmail.com>
Date: Mon, 20 Oct 2014 22:21:43 +0200
9l: link with -lresolv on Linux
LGTM=rsc
R=rsc
https://codereview.appspot.com/136520044
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git 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
@@ -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*);