Fix missing u_char, u_short and u_int typedefs for some platforms e.g.: (#2009)
In file included from ../include/ndpi_main.h:34,
from ../include/ndpi_api.h:28,
from protocols/activision.c:26:
../include/ndpi_typedefs.h:294:3: error: unknown type name 'u_char'
294 | u_char h_dest[6]; /* destination eth addr */
| ^~~~~~
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -31,6 +31,20 @@
|
||||
/* Used by both nDPI core and patricia code under third-party */
|
||||
#include "ndpi_patricia_typedefs.h"
|
||||
|
||||
#ifndef NDPI_CFFI_PREPROCESSING
|
||||
#ifndef u_char
|
||||
typedef unsigned char u_char;
|
||||
#endif
|
||||
|
||||
#ifndef u_short
|
||||
typedef unsigned short u_short;
|
||||
#endif
|
||||
|
||||
#ifndef u_int
|
||||
typedef unsigned int u_int;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* NDPI_LOG_LEVEL */
|
||||
typedef enum {
|
||||
NDPI_LOG_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user