Add missing headers for compiling on FreeBSD 13

- `netinet/in.h`: struct sockaddr_in, struct sockaddr_in6
- `unistd.h`: close()
This commit is contained in:
W. J. van der Laan 2021-09-21 11:30:37 +02:00 committed by Rusty Russell
parent 33168fc733
commit dd93f5dd29
3 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include <common/type_to_string.h>
#include <common/wireaddr.h>
#include <netdb.h>
#include <netinet/in.h>
#include <wire/wire.h>
bool wireaddr_eq(const struct wireaddr *a, const struct wireaddr *b)

View File

@ -34,6 +34,7 @@
#include <connectd/tor_autoservice.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sodium.h>
#include <wire/wire_sync.h>

View File

@ -14,6 +14,7 @@
#else
# define IF_SQLITE3(...)
#endif
#include <unistd.h>
#include <zlib.h>
static const char template[] =