net/mtr: remove libresolv dependency
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26188 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
17
net/mtr/patches/520-libresolv_fix.patch
Normal file
17
net/mtr/patches/520-libresolv_fix.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- 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
|
Reference in New Issue
Block a user