Browse Source

enable rtorrent for uclibc, fix squid compile

Waldemar Brodkorb 16 years ago
parent
commit
1f9d97c7c3
2 changed files with 11 additions and 10 deletions
  1. 0 10
      package/rtorrent/Config.in
  2. 11 0
      package/squid/patch-src_HttpHeaderTools_cc

+ 0 - 10
package/rtorrent/Config.in

@@ -2,9 +2,6 @@ config ADK_PACKAGE_RTORRENT
 	prompt "rtorrent........................... console bittorrent client"
 	tristate
 	depends on ADK_CXX
-	# libtorrent / rtorrent does not work with uclibc++
-	# with gcc 4.4 libstdc++ needs TLS in uClibc
-	depends on ADK_TARGET_LIB_GLIBC
 	select ADK_PACKAGE_LIBNCURSES
 	select ADK_PACKAGE_LIBTORRENT
 	select ADK_PACKAGE_LIBCURL
@@ -16,17 +13,10 @@ choice
 prompt "C++ library to use"
 depends on ADK_PACKAGE_RTORRENT
 default ADK_COMPILE_RTORRENT_WITH_STDCXX if ADK_TARGET_LIB_GLIBC
-default ADK_COMPILE_RTORRENT_WITH_UCLIBCXX if ADK_TARGET_LIB_UCLIBC
 
 config ADK_COMPILE_RTORRENT_WITH_STDCXX
 	bool "Standard C++ library"
 	select ADK_PACKAGE_LIBSTDCXX
 	help
 
-config ADK_COMPILE_RTORRENT_WITH_UCLIBCXX
-	bool "Embedded uClibc++ library"
-	select ADK_PACKAGE_UCLIBCXX
-	depends ADK_BROKEN
-	help
-
 endchoice

+ 11 - 0
package/squid/patch-src_HttpHeaderTools_cc

@@ -0,0 +1,11 @@
+--- squid-3.0.STABLE15.orig/src/HttpHeaderTools.cc	2009-05-06 13:11:40.000000000 +0200
++++ squid-3.0.STABLE15/src/HttpHeaderTools.cc	2009-06-15 18:29:41.000000000 +0200
+@@ -356,7 +356,7 @@ httpHeaderParseQuotedString (const char 
+     pos = start + 1;
+ 
+     while (1) {
+-        if (!(end = index (pos,'"'))) {
++        if (!(end = strchr (pos,'"'))) {
+             debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
+             return 0;
+         }