Using FILL_KPROC() from sysctl.h after rev 1.223 requires a definition
authorjsg <jsg@openbsd.org>
Tue, 8 Feb 2022 12:10:39 +0000 (12:10 +0000)
committerjsg <jsg@openbsd.org>
Tue, 8 Feb 2022 12:10:39 +0000 (12:10 +0000)
of struct filedesc.  Include sys/filedesc.h here to unbreak the build.

problem found by and ok tb@

lib/libkvm/kvm_proc2.c

index d540f8e..2675b8f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kvm_proc2.c,v 1.35 2021/10/06 00:42:46 deraadt Exp $  */
+/*     $OpenBSD: kvm_proc2.c,v 1.36 2022/02/08 12:10:39 jsg Exp $      */
 /*     $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $        */
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -84,6 +84,7 @@
 #include <sys/signalvar.h>
 #include <sys/pledge.h>
 #include <sys/wait.h>
+#include <sys/filedesc.h>
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>