mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
examples/ipv6: disable on win32
I can't make if_nametoindex() work there
Follow-up to c23dc42f39
Closes #11305
This commit is contained in:
parent
9ec099a2bc
commit
fdfc2bb6be
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user