From 4d563e08e1362df62f88caeb6052d5c5368f9786 Mon Sep 17 00:00:00 2001 From: Christopher Zimmermann Date: Sat, 16 Sep 2017 07:51:53 +0200 Subject: [PATCH] Fix building on BSDs --- src/net/IPv4Address.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/net/IPv4Address.hxx b/src/net/IPv4Address.hxx index 4107ab44f..bba453a05 100644 --- a/src/net/IPv4Address.hxx +++ b/src/net/IPv4Address.hxx @@ -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,