$OpenBSD: patch-net_dns_dns_util_cc,v 1.5 2017/09/09 19:16:43 robert Exp $
Index: net/dns/dns_util.cc
--- net/dns/dns_util.cc.orig
+++ net/dns/dns_util.cc
@@ -28,6 +28,8 @@ const int kMaxLabelLength = 63;
 
 }  // namespace
 
+#include <sys/socket.h>
+
 #if defined(OS_POSIX)
 #include <netinet/in.h>
 #if !defined(OS_NACL)
