dtndht: fix musl build
authorDirk Neukirchen <[email protected]>
Thu, 13 Aug 2015 17:21:15 +0000 (19:21 +0200)
committerDirk Neukirchen <[email protected]>
Wed, 19 Aug 2015 09:33:59 +0000 (11:33 +0200)
add missing headers on musl

Signed-off-by: Dirk Neukirchen <[email protected]>
libs/dtndht/patches/001-musl_header.patch [new file with mode: 0644]

diff --git a/libs/dtndht/patches/001-musl_header.patch b/libs/dtndht/patches/001-musl_header.patch
new file mode 100644 (file)
index 0000000..32eeb6a
--- /dev/null
@@ -0,0 +1,30 @@
+--- a/dtndht/dtndht.h
++++ b/dtndht/dtndht.h
+@@ -7,6 +7,7 @@ extern "C" {
+ #include <stdio.h>
+ #include <sys/socket.h>
++#include <time.h>
+ enum dtn_dht_bind_type {
+       BINDNONE = 0, IPV4ONLY = 1, IPV6ONLY = 2, BINDBOTH = 3
+--- a/dtndht/blacklist.c
++++ b/dtndht/blacklist.c
+@@ -6,6 +6,7 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <arpa/inet.h>
++#include <sys/types.h>
+ #ifdef HAVE_OPENSSL_SHA_H
+ #include <openssl/sha.h>
+ #else
+--- a/dtndht/rating.h
++++ b/dtndht/rating.h
+@@ -12,6 +12,7 @@
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <string.h>
++#include <time.h>
+ #ifdef HAVE_OPENSSL_SHA_H
+ #include <openssl/sha.h>
+ #else