Skip to content

Commit

Permalink
build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed May 19, 2024
1 parent 6eb8f44 commit f220593
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/lib/ares_event_configchg.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,16 @@ struct ares_event_configchg {

void ares_event_configchg_destroy(ares_event_configchg_t *configchg)
{
#ifdef WATT32
/* Not supported */
#else
if (configchg->ifchg_hnd != NULL) {
CancelMibChangeNotify2(configchg->ifchg_hnd);
configchg->ifchg_hnd = NULL;
}

ares_free(configchg);
#endif
}

static ares_event_configchg_cb(PVOID CallerContext, PMIB_IPINTERFACE_ROW Row, MIB_NOTIFICATION_TYPE NotificationType)
Expand All @@ -180,6 +184,9 @@ static ares_event_configchg_cb(PVOID CallerContext, PMIB_IPINTERFACE_ROW Row, MI
ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
ares_event_thread_t *e)
{
#ifdef WATT32
return ARES_ENOTIMP;
#else
ares_status_t status = ARES_SUCCESS;

*configchg = ares_malloc_zero(sizeof(**configchg));
Expand All @@ -201,6 +208,7 @@ ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
}

return status;
#endif
}

#elif defined(__APPLE__)
Expand Down Expand Up @@ -329,6 +337,12 @@ ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,
}

#elif defined(HAVE_STAT)
# ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif
# ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
# endif

typedef struct {
size_t size;
Expand Down

0 comments on commit f220593

Please sign in to comment.