diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-08-21 15:20:13 +0200 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-08-21 15:20:13 +0200 |
commit | 28804d8d9792d8e10c6008d8ea84c1cb3ce9d3e3 (patch) | |
tree | 094d22a4b5cc954ec7a9b9d5cbde1166495b1e3f /libs | |
parent | 8fce0732d6b766f95651da8388648c6f9bb79c9f (diff) | |
parent | e49e38ea3e03ceaee016d6755693aded6ee44a93 (diff) |
Merge pull request #1671 from plntyk/fix_musl_dtndht
dtndht: fix musl build
Diffstat (limited to 'libs')
-rw-r--r-- | libs/dtndht/patches/001-musl_header.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/dtndht/patches/001-musl_header.patch b/libs/dtndht/patches/001-musl_header.patch new file mode 100644 index 000000000..32eeb6a0a --- /dev/null +++ b/libs/dtndht/patches/001-musl_header.patch @@ -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 |