Skip to content

Commit

Permalink
Android: Config Change detection needs to be a no-op
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
bradh352 committed May 25, 2024
1 parent 6bbdcf7 commit d1722e6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/lib/ares_event_configchg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit d1722e6

Please sign in to comment.