Skip to content

Commit

Permalink
windows build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed May 19, 2024
1 parent 68878ed commit 26dae64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/ares_event_configchg.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ ares_status_t ares_event_configchg_init(ares_event_configchg_t **configchg,

(*configchg)->e = e;

if (NotifyIpInterfaceChange(AF_UNSPEC, ares_event_configchg_cb, *configchg, FALSE, &(*configchg)->ifchg_hnd) != NO_ERROR) {
if (NotifyIpInterfaceChange(AF_UNSPEC,
(PIPINTERFACE_CHANGE_CALLBACK)ares_event_configchg_cb,
*configchg,
FALSE,
&(*configchg)->ifchg_hnd) != NO_ERROR) {
status = ARES_ESERVFAIL;
goto done;
}
Expand Down
9 changes: 9 additions & 0 deletions src/lib/ares_ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
# include <netinet6/in6.h>
#endif

#if defined(USE_WINSOCK)
# if defined(HAVE_IPHLPAPI_H)
# include <iphlpapi.h>
# endif
# if defined(HAVE_NETIOAPI_H)
# include <netioapi.h>
# endif
#endif

#ifndef HAVE_PF_INET6
# define PF_INET6 AF_INET6
#endif
Expand Down

0 comments on commit 26dae64

Please sign in to comment.