summaryrefslogtreecommitdiff
path: root/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch')
-rw-r--r--packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch b/packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch
deleted file mode 100644
index e137287dd1..0000000000
--- a/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);