diff options
author | 2015-06-25 00:58:49 +0000 | |
---|---|---|
committer | 2015-06-25 00:58:49 +0000 | |
commit | b1791a29adca85ab34261dd7a332c864dd62a3d3 (patch) | |
tree | 049431f7e6dee2f1242a71ef1f25fcf192c476bf | |
parent | fix format string in MP_LOCKDEBUG code (diff) | |
download | wireguard-openbsd-b1791a29adca85ab34261dd7a332c864dd62a3d3.tar.xz wireguard-openbsd-b1791a29adca85ab34261dd7a332c864dd62a3d3.zip |
you need to include ddb/db_output.h so you know how to call db_printf
inside MP_LOCKDEBUG.
-rw-r--r-- | sys/arch/amd64/amd64/lock_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/lock_machdep.c b/sys/arch/amd64/amd64/lock_machdep.c index a8e9946dee9..5d15d2b74c0 100644 --- a/sys/arch/amd64/amd64/lock_machdep.c +++ b/sys/arch/amd64/amd64/lock_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lock_machdep.c,v 1.8 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: lock_machdep.c,v 1.9 2015/06/25 00:58:49 dlg Exp $ */ /* * Copyright (c) 2007 Artur Grabowski <art@openbsd.org> @@ -24,6 +24,8 @@ #include <machine/lock.h> #include <machine/cpufunc.h> +#include <ddb/db_output.h> + void __mp_lock_init(struct __mp_lock *mpl) { |