From: Daniel Stenberg Date: Mon, 12 Jun 2023 07:46:22 +0000 (+0200) Subject: examples/ipv6: disable on win32 X-Git-Tag: curl-8_2_0~107 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdfc2bb6becbc65fda04f2af471ac467bae0b043;p=thirdparty%2Fcurl.git examples/ipv6: disable on win32 I can't make if_nametoindex() work there Follow-up to c23dc42f3997acf23 Closes #11305 --- 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; } +