packages/net/mtr/patches/520-libresolv_fix.patch
acoul 564845633b net/mtr: remove libresolv dependency
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26188 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-16 11:32:06 +00:00

18 lines
798 B
Diff

--- a/configure.in
+++ b/configure.in
@@ -72,10 +72,10 @@ AC_CHECK_FUNC(gethostbyname, ,
AC_CHECK_FUNCS(seteuid)
# AC_CHECK_FUNC(setuid, , AC_MSG_ERROR (I Need either seteuid or setuid))
-AC_CHECK_FUNC(res_mkquery, ,
- AC_CHECK_LIB(bind, res_mkquery, ,
- AC_CHECK_LIB(resolv, res_mkquery, ,
- AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
+#AC_CHECK_FUNC(res_mkquery, ,
+# AC_CHECK_LIB(bind, res_mkquery, ,
+# AC_CHECK_LIB(resolv, res_mkquery, ,
+# AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found)))))
# This next line would override the just detected-or-not -lresolv.
# This apparently hurts BSD. And it's bad practise. So it should go.
# However, it probably didn't get added for nothing..... Holler if