From e70e5a17224e0cc1a08db48f20a568b951cd58c1 Mon Sep 17 00:00:00 2001 From: Antoine Leca Date: Tue, 2 Aug 2016 23:07:15 +0200 Subject: [PATCH] Adapt MINIX-specific part of tools/installboot This is necessary to enable correct compilation of the tools version of installboot_nbsd(8)when cross-compiling on a system close enough to MINIX, like NetBSD 7.0.1 for example. Change-Id: I7a12614518293e05d64d7cc189c62651fdc64734 --- usr.sbin/installboot/install_master.c | 4 ++++ usr.sbin/installboot/minixfs3.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/usr.sbin/installboot/install_master.c b/usr.sbin/installboot/install_master.c index 706f2255e..c86130cbf 100644 --- a/usr.sbin/installboot/install_master.c +++ b/usr.sbin/installboot/install_master.c @@ -3,6 +3,10 @@ * installboot 3.0 - Make a device bootable Author: Kees J. Bot * 21 Dec 1991 */ +#if HAVE_NBTOOL_CONFIG_H +#include "nbtool_config.h" +#endif + #include #include #include diff --git a/usr.sbin/installboot/minixfs3.c b/usr.sbin/installboot/minixfs3.c index e26c1e68f..f590c0cef 100644 --- a/usr.sbin/installboot/minixfs3.c +++ b/usr.sbin/installboot/minixfs3.c @@ -1,3 +1,7 @@ +#if HAVE_NBTOOL_CONFIG_H +#include "nbtool_config.h" +#endif + #include #include #include -- 2.44.0