summaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2019-12-11 12:36:29 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2019-12-11 12:36:29 +0000
commitab875013dbac21955f9e0fb0f48c946c3b136c9c (patch)
tree8f316115a95c4082474d610d4c4fd1a0d0b0a8a6 /lib/libkvm
parent6451bc50f94a62d5452658e63f4b48c37a8a938d (diff)
add sys/wait.h to unbreak builds; following "Replace p_xstat with ps_xexit and
ps_xsig" (sysctl.h r1.198 and friends) FILL_KPROC requires W_EXITCODE from there. cc -static -pie -o ps keyword.o nlist.o print.o ps.o utf8.o -lkvm ld: error: undefined symbol: W_EXITCODE >>> referenced by kvm_proc2.c:293 (/usr/src/lib/libkvm/kvm_proc2.c:293) [...]
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc2.c b/lib/libkvm/kvm_proc2.c
index 1905d511c76..96f7dc91b92 100644
--- a/lib/libkvm/kvm_proc2.c
+++ b/lib/libkvm/kvm_proc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_proc2.c,v 1.30 2019/10/22 21:19:22 cheloha Exp $ */
+/* $OpenBSD: kvm_proc2.c,v 1.31 2019/12/11 12:36:28 sthen Exp $ */
/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -81,6 +81,7 @@
#include <sys/resourcevar.h>
#include <sys/signalvar.h>
#include <sys/pledge.h>
+#include <sys/wait.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>