summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2018-04-25 16:05:58 +0000
committerjca <jca@openbsd.org>2018-04-25 16:05:58 +0000
commit85ff880a7879f95dd21f672425994334574af47e (patch)
treefa56cb8dd4044d3c4c766dc5d803f601350b33b7
parentFix use of unreferenced vnode by decrementing the vnode's reference (diff)
downloadwireguard-openbsd-85ff880a7879f95dd21f672425994334574af47e.tar.xz
wireguard-openbsd-85ff880a7879f95dd21f672425994334574af47e.zip
Make this header standalone #if __BSD_VISIBLE, by including needed headers
Puts us in line with Free/NetBSD and Linux and will get us rid of pointless patches in the ports tree. ok guenther@ deraadt@
-rw-r--r--sys/net/if.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 87fdad7191b..d91ad1f5b9a 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.192 2018/02/19 04:43:48 dlg Exp $ */
+/* $OpenBSD: if.h,v 1.193 2018/04/25 16:05:58 jca Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -59,6 +59,10 @@ __END_DECLS
#if __BSD_VISIBLE
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/socket.h>
+
/*
* Structure used to query names of interface cloners.
*/