diff options
author | Ruslan Sologub <ruslan@sologub.md> | 2016-12-07 11:36:39 +0200 |
---|---|---|
committer | Ruslan Sologub <ruslan@sologub.md> | 2016-12-07 11:36:39 +0200 |
commit | 12a3d80f71156c3b096550e399e83031c65e10e6 (patch) | |
tree | f9d4742c566f23b43abc00ca47d6370055dd76ff /src | |
parent | ef69a1610aef6d841bd5cee05833deb70e4e3d4d (diff) |
Fix 'IPVERSION undeclared' error on WIN32
Diffstat (limited to 'src')
-rw-r--r-- | src/include/ndpi_win32.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |