diff --git a/docs/examples/ipv6.c b/docs/examples/ipv6.c index 768a73e404..c9b4b1fe27 100644 --- a/docs/examples/ipv6.c +++ b/docs/examples/ipv6.c @@ -27,19 +27,15 @@ */ #include #include -#ifdef WIN32 -#include -#else -#include -#endif -#ifdef __MINGW32__ -/* figure out how this can be used with mingw */ -#define if_nametoindex(x) 0 +#ifndef WIN32 +#include #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; } +