aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFilippo Valsorda <hi@filippo.io>2018-05-21 00:10:54 -0400
committerFilippo Valsorda <valsorda@google.com>2018-05-21 14:17:52 -0400
commitfed8f6adb10e560fbd82604e19faf7e2b13fead5 (patch)
tree8fc482f0e8ea90a21b4adb3d845e9ccc8892443b
parentcompat: work around qcom 4.9 backports (diff)
downloadWireGuard-fv/openbsd.tar.xz
WireGuard-fv/openbsd.zip
tools: fix OpenBSD buildfv/openbsd
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
-rw-r--r--src/tools/containers.h2
-rw-r--r--src/tools/ipc.c2
-rw-r--r--src/tools/show.c1
-rw-r--r--src/tools/showconf.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/containers.h b/src/tools/containers.h
index a23da1c..455d998 100644
--- a/src/tools/containers.h
+++ b/src/tools/containers.h
@@ -9,9 +9,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
+#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
-#include <sys/socket.h>
#include "../uapi/wireguard.h"
diff --git a/src/tools/ipc.c b/src/tools/ipc.c
index cdb152b..e29a939 100644
--- a/src/tools/ipc.c
+++ b/src/tools/ipc.c
@@ -12,6 +12,7 @@
#include "mnlg.h"
#endif
#include <netinet/in.h>
+#include <sys/socket.h>
#include <net/if.h>
#include <errno.h>
#include <stdbool.h>
@@ -26,7 +27,6 @@
#include <signal.h>
#include <netdb.h>
#include <limits.h>
-#include <sys/socket.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/types.h>
diff --git a/src/tools/show.c b/src/tools/show.c
index 1b8712f..415489b 100644
--- a/src/tools/show.c
+++ b/src/tools/show.c
@@ -6,6 +6,7 @@
#include <arpa/inet.h>
#include <inttypes.h>
#include <netinet/in.h>
+#include <sys/socket.h>
#include <net/if.h>
#include <stdbool.h>
#include <stddef.h>
diff --git a/src/tools/showconf.c b/src/tools/showconf.c
index 390273a..313ad23 100644
--- a/src/tools/showconf.c
+++ b/src/tools/showconf.c
@@ -5,6 +5,7 @@
#include <arpa/inet.h>
#include <netinet/in.h>
+#include <sys/socket.h>
#include <net/if.h>
#include <stddef.h>
#include <stdio.h>