From 12a3d80f71156c3b096550e399e83031c65e10e6 Mon Sep 17 00:00:00 2001 From: Ruslan Sologub Date: Wed, 7 Dec 2016 11:36:39 +0200 Subject: Fix 'IPVERSION undeclared' error on WIN32 --- src/include/ndpi_win32.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/ndpi_win32.h b/src/include/ndpi_win32.h index 876e59c05..175ecd57d 100644 --- a/src/include/ndpi_win32.h +++ b/src/include/ndpi_win32.h @@ -38,6 +38,8 @@ #define _WS2TCPIP_H_ /* Avoid compilation problems */ +#define IPVERSION 4 /* on *nix it is defined in netinet/ip.h */ + extern char* strsep(char **sp, const char *sep); typedef unsigned char u_char; -- cgit v1.2.3