mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
ip2net: mingw compile
This commit is contained in:
parent
c2754cc347
commit
a813570415
@ -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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <Ws2ipdef.h>
|
||||
#include <ws2tcpip.h>
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#include <getopt.h>
|
||||
#include "qsort.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user