As suggested in the mailing list, this avoids having to link every
binary against resolv.h.
---
 api/util.c   | 2 +-
 configure.ac | 7 -------
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/api/util.c b/api/util.c
index 9cc8030..bfb88c2 100644
--- a/api/util.c
+++ b/api/util.c
@@ -22,7 +22,7 @@
 #include <netinet/in.h>
 
 #include <pwd.h>
-#include <resolv.h>
+#include <base64.h>
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/configure.ac b/configure.ac
index 3394178..c1c2b88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -449,10 +449,6 @@ AC_CHECK_FUNCS([ \
        arc4random_stir \
        arc4random_uniform \
        asprintf \
-       b64_ntop \
-       __b64_ntop \
-       b64_pton \
-       __b64_pton \
        bcopy \
        chflags \
        closefrom \
@@ -638,9 +634,6 @@ AC_CHECK_FUNC([fparseln],
                [LIBS="$LIBS -lutil"; AC_DEFINE([HAVE_FPARSELN])])]
 )
 
-AC_SEARCH_LIBS(res_9_b64_ntop, resolv)
-##chl
-
 #l1873
 # Check for broken snprintf
 if test "x$ac_cv_func_snprintf" = "xyes" ; then
-- 
2.4.2


-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to