diff options
author | Alexey Neyman <stilor@att.net> | 2017-08-26 12:29:34 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-08-26 13:01:44 -0700 |
commit | 8aa8a2cbc9c9a34a099c41f9781543f34d39c40b (patch) | |
tree | cf7371b80f480e1d2ae8f6b1c46f7d6ac20ef4e0 /packages/glibc/2.14/180-resolv-dynamic.patch | |
parent | 5324905c1446d898d9a8f578555c1e54a2fbc89c (diff) | |
download | crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.tar.gz crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.tar.bz2 crosstool-ng-8aa8a2cbc9c9a34a099c41f9781543f34d39c40b.zip |
Missed glibc 2.14 when obsoleting releases
Superseded on the branch by 2.14.1.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/glibc/2.14/180-resolv-dynamic.patch')
-rw-r--r-- | packages/glibc/2.14/180-resolv-dynamic.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/packages/glibc/2.14/180-resolv-dynamic.patch b/packages/glibc/2.14/180-resolv-dynamic.patch deleted file mode 100644 index e916bce3..00000000 --- a/packages/glibc/2.14/180-resolv-dynamic.patch +++ /dev/null @@ -1,39 +0,0 @@ -ripped from SuSE - -if /etc/resolv.conf is updated, then make sure applications -already running get the updated information. - -http://bugs.gentoo.org/177416 - -diff -durN glibc-2.13.orig/resolv/res_libc.c glibc-2.13/resolv/res_libc.c ---- glibc-2.13.orig/resolv/res_libc.c 2009-02-07 05:27:42.000000000 +0100 -+++ glibc-2.13/resolv/res_libc.c 2009-11-13 00:49:59.000000000 +0100 -@@ -22,6 +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 -@@ -95,6 +96,20 @@ - __res_maybe_init (res_state resp, int preinit) - { - if (resp->options & RES_INIT) { -+ static time_t last_mtime, last_check; -+ time_t now; -+ struct stat statbuf; -+ -+ time (&now); -+ if (now != last_check) { -+ last_check = now; -+ if (stat (_PATH_RESCONF, &statbuf) == 0 && last_mtime != statbuf.st_mtime) { -+ last_mtime = statbuf.st_mtime; -+ atomicinclock (lock); -+ atomicinc (__res_initstamp); -+ atomicincunlock (lock); -+ } -+ } - if (__res_initstamp != resp->_u._ext.initstamp) { - if (resp->nscount > 0) - __res_iclose (resp, true); |