Subject: Re: CVS commit: src/games
To: Tom Spindler <dogcow@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: source-changes
Date: 12/18/2007 14:34:54
On Tue, 18 Dec 2007, Tom Spindler wrote:
> Modified Files:
> 	src/games/fortune/strfile: strfile.c
> 	src/games/phantasia: setup.c
> 
> Log Message:
> more __dead fallout: these two files are built for the native host, not
> for the target host - and thus do not necessarily have __dead defined in
> <sys/cdefs.h>.

If they are built for the native host, then they should use the tools
framework, and they should have

#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif

before #include <cdefs.h>.  They should then pick up the compat
definition of __dead from src/tools/compat/compat_defs.h.

Fixing this looks non-trivial, so your workaround will probably have to
do for now (though I think you should #define __dead as nothing, not as
a semicolon).

--apb (Alan Barrett)