t9l: link with -lresolv on Linux - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit fd3496d3ef1b3f27c670c25278cbb0304f74a706
 (DIR) parent 738e890b19eb560e557197aa59598a5e08983a28
 (HTM) 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:
         M bin/9l                              |       2 +-
         M src/libndb/sysdnsquery.c            |       2 --
       
       2 files changed, 1 insertion(+), 3 deletions(-)
       ---
 (DIR) diff --git a/bin/9l b/bin/9l
       t@@ -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"
 (DIR) diff --git a/src/libndb/sysdnsquery.c b/src/libndb/sysdnsquery.c
       t@@ -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*);