From 7bdfc68392299315f4249ce06cfac7b13fb0514a Mon Sep 17 00:00:00 2001 From: dogcow Date: Tue, 18 Dec 2007 08:45:03 +0000 Subject: 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 . --- fortune/strfile/strfile.c | 10 ++++++++-- phantasia/setup.c | 7 ++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/fortune/strfile/strfile.c b/fortune/strfile/strfile.c index e0dae6de..15509370 100644 --- a/fortune/strfile/strfile.c +++ b/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.c,v 1.24 2007/12/15 19:44:40 perry Exp $ */ +/* $NetBSD: strfile.c,v 1.25 2007/12/18 08:45:03 dogcow Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -43,11 +43,13 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: strfile.c,v 1.24 2007/12/15 19:44:40 perry Exp $"); +__RCSID("$NetBSD: strfile.c,v 1.25 2007/12/18 08:45:03 dogcow Exp $"); #endif #endif /* not lint */ #endif /* __NetBSD__ */ +/* n.b.: this file is used at build-time - i.e. during build.sh. */ + # include # include # include @@ -149,6 +151,10 @@ STR *Firstch; /* first chars of each string */ #define NORETURN #endif +#ifndef __dead /* not NetBSD, presumably */ +#define __dead ; +#endif + void add_offset(FILE *, off_t); int cmp_str(const void *, const void *); void die(const char *) NORETURN; diff --git a/phantasia/setup.c b/phantasia/setup.c index 70f3f6e3..af9703f7 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,7 +1,8 @@ -/* $NetBSD: setup.c,v 1.16 2007/12/15 19:44:42 perry Exp $ */ +/* $NetBSD: setup.c,v 1.17 2007/12/18 08:45:04 dogcow Exp $ */ /* * setup.c - set up all files for Phantasia + * n.b.: this is used at build-time - i.e. during build.sh. */ #include #include @@ -9,6 +10,10 @@ #include #include "include.h" +#ifndef __dead /* Not NetBSD */ +#define __dead ; +#endif + int main(int, char *[]); void Error(const char *, const char *) __dead; double drandom(void); -- cgit v1.2.3-56-ge451