aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/btlib.c2
-rw-r--r--src/lib/third_party/include/hash.h2
-rw-r--r--src/lib/third_party/src/hash.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/protocols/btlib.c b/src/lib/protocols/btlib.c
index ac456f364..4a63ebc31 100644
--- a/src/lib/protocols/btlib.c
+++ b/src/lib/protocols/btlib.c
@@ -22,6 +22,8 @@
*
*/
+#include "ndpi_api.h"
+
#ifndef NDPI_NO_STD_INC
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/lib/third_party/include/hash.h b/src/lib/third_party/include/hash.h
index 8862671b1..4f53e5a5e 100644
--- a/src/lib/third_party/include/hash.h
+++ b/src/lib/third_party/include/hash.h
@@ -3,6 +3,8 @@
#ifndef _HASH_H_
#define _HASH_H_
+#include "ndpi_api.h"
+
struct entry_s {
char *key;
u_int16_t value;
diff --git a/src/lib/third_party/src/hash.c b/src/lib/third_party/src/hash.c
index 792d6086e..61ba9fbf6 100644
--- a/src/lib/third_party/src/hash.c
+++ b/src/lib/third_party/src/hash.c
@@ -1,5 +1,7 @@
/* Based on https://gist.github.com/tonious/1377667 */
+#include <stdint.h>
+#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>