diff options
author | dogcow <dogcow@NetBSD.org> | 2007-12-18 08:45:03 +0000 |
---|---|---|
committer | dogcow <dogcow@NetBSD.org> | 2007-12-18 08:45:03 +0000 |
commit | 7bdfc68392299315f4249ce06cfac7b13fb0514a (patch) | |
tree | 5e9a3edda3110e3dae024a818dd67169d527cc21 | |
parent | 5b76eed8435d83619f278cc1584ca5751e2804f6 (diff) | |
download | bsdgames-darwin-7bdfc68392299315f4249ce06cfac7b13fb0514a.tar.gz bsdgames-darwin-7bdfc68392299315f4249ce06cfac7b13fb0514a.tar.zst bsdgames-darwin-7bdfc68392299315f4249ce06cfac7b13fb0514a.zip |
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>.
-rw-r--r-- | fortune/strfile/strfile.c | 10 | ||||
-rw-r--r-- | 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 <sys/types.h> # include <sys/param.h> # include <ctype.h> @@ -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 <sys/cdefs.h> #include <sys/param.h> @@ -9,6 +10,10 @@ #include <fcntl.h> #include "include.h" +#ifndef __dead /* Not NetBSD */ +#define __dead ; +#endif + int main(int, char *[]); void Error(const char *, const char *) __dead; double drandom(void); |