Windows compilation fix.
This commit is contained in:
@@ -998,7 +998,7 @@ typedef struct _ndpi_automa {
|
|||||||
typedef struct ndpi_str_hash {
|
typedef struct ndpi_str_hash {
|
||||||
unsigned int hash;
|
unsigned int hash;
|
||||||
void *value;
|
void *value;
|
||||||
u_int8_t private_data[0];
|
u_int8_t private_data[1]; /* Avoid error C2466 */
|
||||||
} ndpi_str_hash;
|
} ndpi_str_hash;
|
||||||
|
|
||||||
typedef struct ndpi_proto {
|
typedef struct ndpi_proto {
|
||||||
|
|||||||
@@ -73,9 +73,11 @@ struct pcre_struct {
|
|||||||
* Please keep this strcture in sync with
|
* Please keep this strcture in sync with
|
||||||
* `struct ndpi_str_hash` in src/include/ndpi_typedefs.h
|
* `struct ndpi_str_hash` in src/include/ndpi_typedefs.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct ndpi_str_hash_private {
|
typedef struct ndpi_str_hash_private {
|
||||||
unsigned int hash;
|
unsigned int hash;
|
||||||
void *value;
|
void *value;
|
||||||
|
u_int8_t private_data[1];
|
||||||
UT_hash_handle hh;
|
UT_hash_handle hh;
|
||||||
} ndpi_str_hash_private;
|
} ndpi_str_hash_private;
|
||||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
||||||
|
|||||||
Reference in New Issue
Block a user