diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-08-19 16:18:28 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-20 16:07:43 +0100 |
commit | 735210556dc709b3c2367389fa6ea9c0109412b1 (patch) | |
tree | b042ff7f78c7850460e6994d78b49a60be7db544 /meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch | |
parent | 7e8f14d2d8c11d57ccd77974672bd959f8e95e35 (diff) | |
download | openembedded-core-735210556dc709b3c2367389fa6ea9c0109412b1.tar.gz openembedded-core-735210556dc709b3c2367389fa6ea9c0109412b1.tar.bz2 openembedded-core-735210556dc709b3c2367389fa6ea9c0109412b1.tar.xz openembedded-core-735210556dc709b3c2367389fa6ea9c0109412b1.zip |
glibc: remove all old recipes
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch')
-rw-r--r-- | meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch b/meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch deleted file mode 100644 index e137287dd..000000000 --- a/meta/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch +++ /dev/null @@ -1,41 +0,0 @@ -# All lines beginning with `# DP:' are a description of the patch. -# DP: Description: allow dynamic long-running processes to -# DP: re-read a dynamically updated resolv.conf on the fly -# DP: Dpatch author: Adam Conrad <adconrad@ubuntu.com> -# DP: Patch author: Thorsten Kukuk <kukuk@suse.de> -# DP: Upstream status: Ubuntu-Specific -# DP: Date: 2006-01-13 08:14:21 UTC - -Index: resolv/res_libc.c -=================================================================== ---- resolv/res_libc.c.orig -+++ resolv/res_libc.c -@@ -22,7 +22,7 @@ - #include <arpa/nameser.h> - #include <resolv.h> - #include <bits/libc-lock.h> -- -+#include <sys/stat.h> - - /* The following bit is copied from res_data.c (where it is #ifdef'ed - out) since res_init() should go into libc.so but the rest of that -@@ -94,8 +94,17 @@ - int - __res_maybe_init (res_state resp, int preinit) - { -- if (resp->options & RES_INIT) { -- if (__res_initstamp != resp->_u._ext.initstamp) { -+ static time_t last_mtime; -+ struct stat statbuf; -+ int ret; -+ -+ -+ if (resp->options & RES_INIT) { -+ ret = stat (_PATH_RESCONF, &statbuf); -+ if (__res_initstamp != resp->_u._ext.initstamp -+ || (ret == 0) && (last_mtime != statbuf.st_mtime)) -+ { -+ last_mtime = statbuf.st_mtime; - if (resp->nscount > 0) { - __res_iclose (resp, true); - return __res_vinit (resp, 1); |