From a3d794cec0d213c15b0889cbf93169dca84414bd Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Fri, 26 Nov 2021 09:47:19 +0900 Subject: [PATCH] libresolv-wrapper: Define `res_init` --- .../src-resolv_wrapper.c.patch | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/packages/libresolv-wrapper/src-resolv_wrapper.c.patch b/packages/libresolv-wrapper/src-resolv_wrapper.c.patch index cd726cb5a..6f2b0c68f 100644 --- a/packages/libresolv-wrapper/src-resolv_wrapper.c.patch +++ b/packages/libresolv-wrapper/src-resolv_wrapper.c.patch @@ -47,23 +47,16 @@ if (resolv_conf != NULL) { rc = rwrap_parse_resolv_conf(state, resolv_conf); } -@@ -1984,6 +2001,7 @@ +@@ -1984,7 +2001,7 @@ return rc; } -+#ifndef __ANDROID__ - #if !defined(res_ninit) && defined(HAVE_RES_INIT) +-#if !defined(res_ninit) && defined(HAVE_RES_INIT) ++#if !defined(res_ninit) && defined(HAVE_RES_INIT) || defined(__ANDROID__) int res_init(void) #elif defined(HAVE___RES_INIT) -@@ -1992,6 +2010,7 @@ - { - return rwrap_res_init(); - } -+#endif - - /**************************************************************************** - * RES_NCLOSE -@@ -2222,3 +2241,46 @@ + int __res_init(void) +@@ -2222,3 +2239,46 @@ { return rwrap_res_search(dname, class, type, answer, anslen); }