From 98e8bc8aba248755245c6d81042ae5eeec1f45b9 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Wed, 6 Nov 2024 14:26:21 +0000 Subject: Fix broken vmd(8) build on arm64 due to missing psp_setup(). The psp.c source is restricted in makefile with .if ${MACHINE} == "amd64" so use #ifdef __amd64__ around the call to psp_setup(). On arm64 set vmd_psp_fd to an invalid value. OK hshoexer@ mlarkin@ --- usr.sbin/vmd/vmd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index 5ea0ad48dc1..43c367a4245 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.162 2024/11/05 23:16:46 bluhm Exp $ */ +/* $OpenBSD: vmd.c,v 1.163 2024/11/06 14:26:20 bluhm Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -842,8 +842,11 @@ main(int argc, char **argv) if (!env->vmd_noaction) proc_connect(ps); + env->vmd_psp_fd = -1; +#ifdef __amd64__ if (env->vmd_noaction == 0 && proc_id == PROC_PARENT) psp_setup(); +#endif if (vmd_configure() == -1) fatalx("configuration failed"); -- cgit v1.2.3