I can't make if_nametoindex() work there
Follow-up to
c23dc42f3997acf23
Closes #11305
*/
#include <stdio.h>
#include <curl/curl.h>
-#ifdef WIN32
-#include <netioapi.h>
-#else
-#include <net/if.h>
-#endif
-#ifdef __MINGW32__
-/* figure out how this can be used with mingw */
-#define if_nametoindex(x) 0
+#ifndef WIN32
+#include <net/if.h>
#endif
int main(void)
{
+#ifndef WIN32
+ /* Windows users need to find how to use if_nametoindex() */
CURL *curl;
CURLcode res;
/* always cleanup */
curl_easy_cleanup(curl);
}
+#endif
return 0;
}
+