examples/ipv6: disable on win32

I can't make if_nametoindex() work there

Follow-up to c23dc42f39

Closes #11305
This commit is contained in:
Daniel Stenberg 2023-06-12 09:46:22 +02:00
parent 9ec099a2bc
commit fdfc2bb6be
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -27,19 +27,15 @@
*/
#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;
@ -61,5 +57,7 @@ int main(void)
/* always cleanup */
curl_easy_cleanup(curl);
}
#endif
return 0;
}