9l: link with -lresolv on Linux
LGTM=rsc R=rsc https://codereview.appspot.com/136520044
This commit is contained in:
parent
738e890b19
commit
fd3496d3ef
2 changed files with 1 additions and 3 deletions
2
bin/9l
2
bin/9l
|
|
@ -38,7 +38,7 @@ case "$tag" in
|
||||||
*Linux*)
|
*Linux*)
|
||||||
ld=${CC9:-gcc}
|
ld=${CC9:-gcc}
|
||||||
userpath=true
|
userpath=true
|
||||||
extralibs="$extralibs -lutil"
|
extralibs="$extralibs -lutil -lresolv"
|
||||||
case "${SYSVERSION:-`uname -r`}" in
|
case "${SYSVERSION:-`uname -r`}" in
|
||||||
2.6.* | 3.*)
|
2.6.* | 3.*)
|
||||||
extralibs="$extralibs -lpthread"
|
extralibs="$extralibs -lpthread"
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,6 @@
|
||||||
#include <ndb.h>
|
#include <ndb.h>
|
||||||
#include "ndbhf.h"
|
#include "ndbhf.h"
|
||||||
|
|
||||||
AUTOLIB(resolv)
|
|
||||||
|
|
||||||
static void nstrcpy(char*, char*, int);
|
static void nstrcpy(char*, char*, int);
|
||||||
static void mkptrname(char*, char*, int);
|
static void mkptrname(char*, char*, int);
|
||||||
static Ndbtuple *doquery(char*, char*);
|
static Ndbtuple *doquery(char*, char*);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue