diff options
author | lukem <lukem@NetBSD.org> | 2008-01-16 23:23:25 +0000 |
---|---|---|
committer | lukem <lukem@NetBSD.org> | 2008-01-16 23:23:25 +0000 |
commit | 3de32d6085fbd924aa8c905634db3229296a371d (patch) | |
tree | e767962e4c4869e1f2f403b4db962f0510daeb93 /phantasia | |
parent | 171895fb3091b20b772c7ce10af67d5d5e3c03f9 (diff) | |
download | bsdgames-darwin-3de32d6085fbd924aa8c905634db3229296a371d.tar.gz bsdgames-darwin-3de32d6085fbd924aa8c905634db3229296a371d.tar.zst bsdgames-darwin-3de32d6085fbd924aa8c905634db3229296a371d.zip |
Only pull in <sys/cdefs.h> on NetBSD, to fix build on Solaris 10.
Tweak replacement definition of __dead.
Diffstat (limited to 'phantasia')
-rw-r--r-- | phantasia/setup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phantasia/setup.c b/phantasia/setup.c index af9703f7..b192e847 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,17 +1,20 @@ -/* $NetBSD: setup.c,v 1.17 2007/12/18 08:45:04 dogcow Exp $ */ +/* $NetBSD: setup.c,v 1.18 2008/01/16 23:23:25 lukem Exp $ */ /* * setup.c - set up all files for Phantasia * n.b.: this is used at build-time - i.e. during build.sh. */ +#ifdef __NetBSD__ #include <sys/cdefs.h> +#endif + #include <sys/param.h> #include <sys/stat.h> #include <fcntl.h> #include "include.h" #ifndef __dead /* Not NetBSD */ -#define __dead ; +#define __dead #endif int main(int, char *[]); |