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)
pull/770/head
Brad House 6 months ago
parent 6bbdcf766e
commit d1722e6e8a
  1. 16
      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 <sys/inotify.h>

Loading…
Cancel
Save