summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-03-23 15:36:31 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-03-23 15:36:31 +0000
commit249d621757d2e1fe2169ff6529ee1851a1fd338a (patch)
treed80c5fccca205d63f7821f8ae45f219649cea807 /usr.sbin
parentb7a517a6ae992b0d2a296d6f60ef71d571a0750f (diff)
Some architectures require <machine/param.h> to use VM_MIN_KERNEL_ADDRESS.
Fix build on at least sparc64
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/btrace/btrace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c
index 3a85e044c8e..556c37e81a6 100644
--- a/usr.sbin/btrace/btrace.c
+++ b/usr.sbin/btrace/btrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: btrace.c,v 1.10 2020/03/23 15:34:45 mpi Exp $ */
+/* $OpenBSD: btrace.c,v 1.11 2020/03/23 15:36:30 mpi Exp $ */
/*
* Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org>
@@ -609,6 +609,7 @@ builtin_nsecs(struct dt_evt *dtev)
}
#include <machine/vmparam.h>
+#include <machine/param.h>
#define INKERNEL(va) ((va) >= VM_MIN_KERNEL_ADDRESS)
const char *