From d1722e6e8acaf10eb73fa995798a9cd421d9f85e Mon Sep 17 00:00:00 2001 From: Brad House Date: Sat, 25 May 2024 07:18:02 -0400 Subject: [PATCH] Android: Config Change detection needs to be a no-op There is no way from the NDK to detect changes, must be a no-op to prevent compiler issues. Fixes Issue: #767 Fix By: Brad House (@bradh352) --- src/lib/ares_event_configchg.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/lib/ares_event_configchg.c b/src/lib/ares_event_configchg.c index dc6e4656..eb53fe4e 100644 --- a/src/lib/ares_event_configchg.c +++ b/src/lib/ares_event_configchg.c @@ -33,7 +33,21 @@ static void ares_event_configchg_reload(ares_event_thread_t *e) ares_reinit(e->channel); } -#ifdef __linux__ +#ifdef __ANDROID__ + +ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg, + ares_event_thread_t *e) +{ + /* No ability */ + return ARES_ENOTIMP; +} + +void ares_event_configchg_destroy(ares_event_configchg_t *configchg) +{ + /* No-op */ +} + +#elif defined(__linux__) # include