Fix building on BSDs

parent 8a81b986
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment