diff options
author | Michele Campus <fci1908@gmail.com> | 2016-12-07 10:45:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 10:45:43 +0100 |
commit | f7515514bdd16189f21513c9c0c034d8c585e4d6 (patch) | |
tree | f9d4742c566f23b43abc00ca47d6370055dd76ff | |
parent | ef69a1610aef6d841bd5cee05833deb70e4e3d4d (diff) | |
parent | 12a3d80f71156c3b096550e399e83031c65e10e6 (diff) |
Merge pull request #314 from sologub/dev
Fix 'IPVERSION undeclared' error on WIN32
-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; |