which must be manually included in userland were missing
#!/bin/sh
-# $OpenBSD: mksubr,v 1.36 2018/11/05 17:05:50 anton Exp $
+# $OpenBSD: mksubr,v 1.37 2021/09/17 15:13:50 deraadt Exp $
#
# Copyright (c) 2006 David Kirchner <dpk@dpk.net>
#
# C start
cat <<_EOF_
-#include <stdio.h>
-#include <sys/param.h>
+#include <sys/param.h> /* MAXCOMLEN */
+#include <sys/types.h>
+#include <sys/signal.h>
#include <sys/event.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
#include <sys/proc.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <sys/param.h>
#include <sys/mount.h>
#include <sys/poll.h>
#include <sys/ptrace.h>
#include <ufs/ufs/quota.h>
#include <sys/syslog.h>
#include <sys/futex.h>
+#include <stdio.h>
#include "kdump_subr.h"