summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-06-06 13:19:29 +0000
committermpi <mpi@openbsd.org>2017-06-06 13:19:29 +0000
commit11a02c361f3daea90cb778a92dd8bb93d65d4e5c (patch)
tree583b951d255b171026694912b0dd13f859d2f441
parentUpdate panic strings, pipex no longer use rn_inithead0(). (diff)
downloadwireguard-openbsd-11a02c361f3daea90cb778a92dd8bb93d65d4e5c.tar.xz
wireguard-openbsd-11a02c361f3daea90cb778a92dd8bb93d65d4e5c.zip
Update stubs to work with radix tree.
-rw-r--r--regress/sys/net/rtable/kern_compat.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h
index f30ab22ea28..e1275c38050 100644
--- a/regress/sys/net/rtable/kern_compat.h
+++ b/regress/sys/net/rtable/kern_compat.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_compat.h,v 1.5 2016/09/21 07:13:02 mpi Exp $ */
+/* $OpenBSD: kern_compat.h,v 1.6 2017/06/06 13:19:29 mpi Exp $ */
#ifndef _KERN_COMPAT_H_
#define _KERN_COMPAT_H_
@@ -8,6 +8,7 @@
#include <sys/queue.h>
#include <sys/mutex.h>
#include <sys/task.h>
+#include <sys/select.h>
#include <arpa/inet.h>
#include <assert.h>
@@ -56,8 +57,8 @@ struct pool {
#define rtref(_rt) ((_rt)->rt_refcnt++)
#define rtfree(_rt) (assert(--(_rt)->rt_refcnt >= 0))
-#define mtx_enter(_mtx) /* nothing */
-#define mtx_leave(_mtx) /* nothing */
+#define __mtx_enter(_mtx) /* nothing */
+#define __mtx_leave(_mtx) /* nothing */
#define task_add(_tq, _t) ((_t)->t_func((_t)->t_arg))