From a81357041593a7286a802ce15d4077286e95105b Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 17 Jun 2022 14:05:58 +0300 Subject: [PATCH] ip2net: mingw compile --- ip2net/ip2net.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ip2net/ip2net.c b/ip2net/ip2net.c index 4b9ae16..d8d33ac 100644 --- a/ip2net/ip2net.c +++ b/ip2net/ip2net.c @@ -3,14 +3,22 @@ // valid ip/bitcount and ip1-ip2 are passed through without modification // ips are groupped into subnets +// can be compiled in mingw. msvc not supported because of absent getopt + #include #include #include #include #include +#ifdef _WIN32 +#include +#include +#include +#else #include #include #include +#endif #include #include "qsort.h"