summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>2003-05-19 09:00:54 +0000
committerpjanzen <pjanzen@openbsd.org>2003-05-19 09:00:54 +0000
commitd07db98cea15a16192f04f1f2c8729825af955a7 (patch)
treec0bb4e4a615bdf4cbd6e5e4d287c1bd5165efa92
parentNetBSD check to make sure not to deref -1. (diff)
downloadwireguard-openbsd-d07db98cea15a16192f04f1f2c8729825af955a7.tar.xz
wireguard-openbsd-d07db98cea15a16192f04f1f2c8729825af955a7.zip
A few more includes discovered in a -fno-builtin compile
-rw-r--r--games/hack/hack.pri.c5
-rw-r--r--games/hack/hack.save.c5
-rw-r--r--games/hack/hack.tty.c5
-rw-r--r--games/hack/hack.vault.c5
-rw-r--r--games/hack/hack.wizard.c6
-rw-r--r--games/hack/hack.zap.c5
-rw-r--r--games/hack/makedefs.c5
7 files changed, 21 insertions, 15 deletions
diff --git a/games/hack/hack.pri.c b/games/hack/hack.pri.c
index 8ce99d4c083..483208aafb8 100644
--- a/games/hack/hack.pri.c
+++ b/games/hack/hack.pri.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.pri.c,v 1.8 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.pri.c,v 1.9 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,11 +62,12 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.pri.c,v 1.8 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.pri.c,v 1.9 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
#include <curses.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdarg.h>
#include "hack.h"
diff --git a/games/hack/hack.save.c b/games/hack/hack.save.c
index c98e5d16555..2c4f4d18afc 100644
--- a/games/hack/hack.save.c
+++ b/games/hack/hack.save.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.save.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.save.c,v 1.7 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,10 +62,11 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.save.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.save.c,v 1.7 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include "hack.h"
diff --git a/games/hack/hack.tty.c b/games/hack/hack.tty.c
index 8846a6ca49c..31f119a6d30 100644
--- a/games/hack/hack.tty.c
+++ b/games/hack/hack.tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.tty.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.tty.c,v 1.8 2003/05/19 09:00:54 pjanzen Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)hack.tty.c 8.1 (Berkeley) 5/31/93";
#else
-static const char rcsid[] = "$OpenBSD: hack.tty.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.tty.c,v 1.8 2003/05/19 09:00:54 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -109,6 +109,7 @@ static const char rcsid[] = "$OpenBSD: hack.tty.c,v 1.7 2003/05/19 06:30:56 pjan
#include "hack.h"
#include <stdio.h>
#include <stdarg.h>
+#include <stdlib.h>
#include <termios.h>
/*
diff --git a/games/hack/hack.vault.c b/games/hack/hack.vault.c
index 505af7cf2a5..ec260df705f 100644
--- a/games/hack/hack.vault.c
+++ b/games/hack/hack.vault.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.vault.c,v 1.5 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.vault.c,v 1.6 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,9 +62,10 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.vault.c,v 1.5 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.vault.c,v 1.6 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
+#include <stdlib.h>
#include "hack.h"
#ifdef QUEST
void
diff --git a/games/hack/hack.wizard.c b/games/hack/hack.wizard.c
index 28e3590bae7..619106d8ecd 100644
--- a/games/hack/hack.wizard.c
+++ b/games/hack/hack.wizard.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.wizard.c,v 1.4 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.wizard.c,v 1.5 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,14 +62,14 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.wizard.c,v 1.4 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.wizard.c,v 1.5 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
/* wizard code - inspired by rogue code from Merlyn Leroy (digi-g!brian) */
+#include <stdlib.h>
#include "hack.h"
extern struct permonst pm_wizard;
-extern struct monst *makemon();
static void clonewiz(struct monst *);
diff --git a/games/hack/hack.zap.c b/games/hack/hack.zap.c
index cdb964b1197..f3f4325be4e 100644
--- a/games/hack/hack.zap.c
+++ b/games/hack/hack.zap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hack.zap.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: hack.zap.c,v 1.8 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,9 +62,10 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: hack.zap.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: hack.zap.c,v 1.8 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
+#include <stdlib.h>
#include "hack.h"
extern struct monst youmonst;
diff --git a/games/hack/makedefs.c b/games/hack/makedefs.c
index 2fd6c7ee465..c62b3dbd535 100644
--- a/games/hack/makedefs.c
+++ b/games/hack/makedefs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: makedefs.c,v 1.5 2003/05/19 06:30:56 pjanzen Exp $ */
+/* $OpenBSD: makedefs.c,v 1.6 2003/05/19 09:00:54 pjanzen Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -62,11 +62,12 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: makedefs.c,v 1.5 2003/05/19 06:30:56 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: makedefs.c,v 1.6 2003/05/19 09:00:54 pjanzen Exp $";
#endif /* not lint */
#include <ctype.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>