On Fri, 2013-05-10 at 20:07 -0600, Erich E. Hoover wrote:
+/***********************************************************************
IPHLPAPI_createmonitorhandle (INTERNAL)
- Routine to create the interface monitoring handle for NotifyAddrChange requests.
- */
+static NTSTATUS IPHLPAPI_createmonitorhandle(HANDLE *h) +{
- NTSTATUS status = ERROR_NOT_SUPPORTED;
- *h = INVALID_HANDLE_VALUE;
+#if defined(NETLINK_ROUTE)
I don't see why you're still using these defines. It's unlikely that this code will work if NETLINK_ROUTE is defined but RTMGRP_IPV4_IFADDR isn't, for example.
If there are versions of the netlink headers that don't have all of them it may be possible to work around that (e.g. by defining them ourselves), if not we can expand the configure check.