Skip to content

Commit d1722e6

Browse files
committed
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)
1 parent 6bbdcf7 commit d1722e6

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎src/lib/ares_event_configchg.c‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,21 @@ static void ares_event_configchg_reload(ares_event_thread_t *e)
3333
ares_reinit(e->channel);
3434
}
3535

36-
#ifdef __linux__
36+
#ifdef __ANDROID__
37+
38+
ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
39+
ares_event_thread_t *e)
40+
{
41+
/* No ability */
42+
return ARES_ENOTIMP;
43+
}
44+
45+
void ares_event_configchg_destroy(ares_event_configchg_t *configchg)
46+
{
47+
/* No-op */
48+
}
49+
50+
#elif defined(__linux__)
3751

3852
# include <sys/inotify.h>
3953

0 commit comments

Comments
 (0)