aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2018-06-05 23:02:24 +0200
committerLuca Deri <deri@ntop.org>2018-06-05 23:02:24 +0200
commitdc9409ae123cee206d0664e04d82e34ba01402eb (patch)
tree92e7e742d49bdfa10228d8c85b11192372e6da08 /src
parent2b4321b5c3f8f00b99f2e52aea520c39f81a2beb (diff)
Added missing include
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>