From f6f5af5e92dc0db66032d5b17191b21369c44fe4 Mon Sep 17 00:00:00 2001 From: mirko Date: Sat, 17 Jul 2010 17:43:32 +0000 Subject: [PATCH] qt4: avoiding the use of member variable of struct <__res_state>, as it's disabled in uclibc, bloated and deprecated anyway should contain the domain name(s) - however more verification is needed, whether is an appropriate replacement for git-svn-id: svn://svn.openwrt.org/openwrt/packages@22262 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../qt4/patches/100-do_not_use_res.defdname.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Xorg/lib/qt4/patches/100-do_not_use_res.defdname.patch b/Xorg/lib/qt4/patches/100-do_not_use_res.defdname.patch index 57c3a540a..0b2d0ef3b 100644 --- a/Xorg/lib/qt4/patches/100-do_not_use_res.defdname.patch +++ b/Xorg/lib/qt4/patches/100-do_not_use_res.defdname.patch @@ -9,3 +9,27 @@ resolveLibrary(); if (local_res_ninit) { // using thread-safe version +--- qt-everywhere-opensource-src-4.7.0-beta1/src/qt3support/network/q3dns.cpp 2010-05-04 02:43:25.000000000 +0200 ++++ qt-everywhere-opensource-src-4.7.0-beta1/src/qt3support/network/q3dns.cpp.new 2010-06-20 14:43:48.565315801 +0200 +@@ -2499,8 +2499,8 @@ + break; + } + # endif +- if ( *res.defdname ) +- theDomains->append( QString::fromLatin1( res.defdname ).lower().local8Bit() ); ++// if ( *res.defdname ) ++// theDomains->append( QString::fromLatin1( res.defdname ).lower().local8Bit() ); + #else + res_init(); + int i; +@@ -2515,8 +2515,8 @@ + break; + } + # endif +- if ( *_res.defdname ) +- theDomains->append( QString::fromLatin1( _res.defdname ).lower().local8Bit() ); ++// if ( *_res.defdname ) ++// theDomains->append( QString::fromLatin1( _res.defdname ).lower().local8Bit() ); + #endif + + // the code above adds "0.0.0.0" as a name server at the slightest -- 2.11.0