Skip to content

Commit dd93f5d

Browse files
laanwjrustyrussell
authored andcommitted
Add missing headers for compiling on FreeBSD 13
- `netinet/in.h`: struct sockaddr_in, struct sockaddr_in6 - `unistd.h`: close()
1 parent 33168fc commit dd93f5d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

common/wireaddr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <common/type_to_string.h>
88
#include <common/wireaddr.h>
99
#include <netdb.h>
10+
#include <netinet/in.h>
1011
#include <wire/wire.h>
1112

1213
bool wireaddr_eq(const struct wireaddr *a, const struct wireaddr *b)

connectd/connectd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <connectd/tor_autoservice.h>
3535
#include <errno.h>
3636
#include <netdb.h>
37+
#include <netinet/in.h>
3738
#include <sodium.h>
3839
#include <wire/wire_sync.h>
3940

tools/headerversions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#else
1515
# define IF_SQLITE3(...)
1616
#endif
17+
#include <unistd.h>
1718
#include <zlib.h>
1819

1920
static const char template[] =

0 commit comments

Comments
 (0)