Fix building on BSDs
This commit is contained in:
parent
8a81b986c0
commit
4d563e08e1
@ -81,7 +81,8 @@ class IPv4Address {
|
||||
static constexpr struct sockaddr_in Construct(struct in_addr address,
|
||||
uint16_t port) {
|
||||
return {
|
||||
#if defined(__APPLE__)
|
||||
#if defined(__APPLE__) || \
|
||||
defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
|
||||
sizeof(struct sockaddr_in),
|
||||
#endif
|
||||
AF_INET,
|
||||
|
Loading…
Reference in New Issue
Block a user