Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / libs / dtndht / patches / 001-musl_header.patch
1 --- a/dtndht/dtndht.h
2 +++ b/dtndht/dtndht.h
3 @@ -7,6 +7,7 @@ extern "C" {
4  
5  #include <stdio.h>
6  #include <sys/socket.h>
7 +#include <time.h>
8  
9  enum dtn_dht_bind_type {
10         BINDNONE = 0, IPV4ONLY = 1, IPV6ONLY = 2, BINDBOTH = 3
11 --- a/dtndht/blacklist.c
12 +++ b/dtndht/blacklist.c
13 @@ -6,6 +6,7 @@
14  #include <string.h>
15  #include <stdio.h>
16  #include <arpa/inet.h>
17 +#include <sys/types.h>
18  #ifdef HAVE_OPENSSL_SHA_H
19  #include <openssl/sha.h>
20  #else
21 --- a/dtndht/rating.h
22 +++ b/dtndht/rating.h
23 @@ -12,6 +12,7 @@
24  #include <sys/socket.h>
25  #include <arpa/inet.h>
26  #include <string.h>
27 +#include <time.h>
28  #ifdef HAVE_OPENSSL_SHA_H
29  #include <openssl/sha.h>
30  #else