summaryrefslogtreecommitdiffstats
path: root/bind-9.5-fix_h_errno.patch
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2007-09-03 08:23:14 +0000
committerAdam Tkac <atkac@fedoraproject.org>2007-09-03 08:23:14 +0000
commit10a7d952250bdcc9ade2d608fad5878eadd1f31d (patch)
treeae45b76cad36340c766a6a3415a2032467edff38 /bind-9.5-fix_h_errno.patch
parentf7ddf08324c43211e60bed48df9f85ca1d142f62 (diff)
- temporary revert ISC 2119 change and add "libbind-errno" patch (#254501)bind-9_5_0-11_2_a6_fc8
again
Diffstat (limited to 'bind-9.5-fix_h_errno.patch')
-rw-r--r--bind-9.5-fix_h_errno.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/bind-9.5-fix_h_errno.patch b/bind-9.5-fix_h_errno.patch
new file mode 100644
index 0000000..aa52d86
--- /dev/null
+++ b/bind-9.5-fix_h_errno.patch
@@ -0,0 +1,26 @@
+--- bind-9.3.1rc1/lib/bind/irs/irs_data.c.fix_h_errno 2004-11-29 20:15:43.000000000 -0500
++++ bind-9.3.1rc1/lib/bind/irs/irs_data.c 2005-03-09 21:05:52.000000000 -0500
+@@ -222,12 +222,7 @@
+ void
+ __h_errno_set(struct __res_state *res, int err) {
+
+-
+-#if (__GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)
+- res->res_h_errno = err;
+-#else
+ h_errno = res->res_h_errno = err;
+-#endif
+ }
+
+ #endif /*__BIND_NOSTATIC*/
+--- bind-9.3.1rc1/lib/bind/resolv/res_query.c.fix_h_errno 2004-03-16 07:34:19.000000000 -0500
++++ bind-9.3.1rc1/lib/bind/resolv/res_query.c 2005-03-09 21:53:34.000000000 -0500
+@@ -192,6 +192,8 @@
+ }
+ return (-1);
+ }
++ if( n > 0 )
++ RES_SET_H_ERRNO(statp,0);
+ return (n);
+ }
+