termux-packages/packages/haskell-resolv/hs_resolv.patch
Aditya Alok 7e97edb3ca feat: add cabal-install package
closes #8919

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-09 10:01:57 +09:00

25 lines
481 B
Diff

--- resolv-0.1.2.0/cbits/hs_resolv.h 2001-09-09 07:16:40.000000000 +0530
+++ resolv-0.1.2.0-patch/cbits/hs_resolv.h 2022-02-03 20:54:49.602546255 +0530
@@ -84,12 +84,8 @@
{
assert(!s);
- if (!(_res.options & RES_INIT)) {
int rc = res_init();
if (rc) return rc;
- }
-
- _res.options |= RES_USE_DNSSEC | RES_USE_EDNS0;
return 0;
}
@@ -112,7 +108,7 @@
{
assert(!s);
- return res_send(msg, msglen, answer, anslen);
+ return -1;
}
inline static int