From fdfc2bb6becbc65fda04f2af471ac467bae0b043 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Jun 2023 09:46:22 +0200 Subject: [PATCH] examples/ipv6: disable on win32 I can't make if_nametoindex() work there Follow-up to c23dc42f3997acf23 Closes #11305 --- docs/examples/ipv6.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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; } + -- 2.47.3