]> Zhao Yanbai Git Server - minix.git/commitdiff
Adapt MINIX-specific part of tools/installboot 38/3338/1
authorAntoine Leca <Antoine.Leca.1@gmail.com>
Tue, 2 Aug 2016 21:07:15 +0000 (23:07 +0200)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Wed, 3 Aug 2016 06:09:00 +0000 (08:09 +0200)
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
usr.sbin/installboot/minixfs3.c

index 706f2255ed5bd4bc216509d6c992e878379b4fcf..c86130cbfd01e5c23251c81058d8a30f25ffbb4e 100644 (file)
@@ -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 <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index e26c1e68f69464604968d857c8402bee4bf37fa7..f590c0cef17523657a8c0556e64548a823e16489 100644 (file)
@@ -1,3 +1,7 @@
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>