Subject: Re: Build broken? (Re: CVS commit: src/usr.sbin/makefs)
To: Frank van der Linden <fvdl@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: current-users
Date: 08/14/2005 21:58:14
On Sat, 13 Aug 2005, Valeriy E. Ushakov wrote:
> > cd9660 support. Written by Daniel Watt, Walter Deignan, Ryan Gabrys,
> > Alan Perez-Rathke and Ram Vedam.
> 
> This seems to be broken for "tools" build.  Unfortunately, I have to
> run now and cannot look further into it, but it seems that the problem
> is that cd9660.h doesn't arrange for compat defs to be pulled early.

The following patch seems to fix it for me.

--apb (Alan Barrett)

Index: usr.sbin/makefs/cd9660.h
--- usr.sbin/makefs/cd9660.h	13 Aug 2005 01:53:01 -0000	1.1
+++ usr.sbin/makefs/cd9660.h	14 Aug 2005 19:56:51 -0000
@@ -35,6 +35,10 @@
 #ifndef _MAKEFS_CD9660_H
 #define _MAKEFS_CD9660_H
 
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>