Fix compile error in openbsd (#6430)
authorjcalve <jcalve@users.noreply.github.com>
Wed, 20 Sep 2017 21:29:47 +0000 (23:29 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 20 Sep 2017 21:29:47 +0000 (23:29 +0200)
Include the header that defines AF_INET and AF_INET6

src/network/address.h

index 79ca21f8c51a7ddb4a3956b8557973bb4fcd701d..fb25b35650e2b64c5094fe72ffb562d0e26058a5 100644 (file)
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <ws2tcpip.h>
 #else
 #include <netinet/in.h>
+#include <sys/socket.h>
 #endif
 
 #include <ostream>