summaryrefslogtreecommitdiffstats
path: root/warp/warp.h
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2020-11-10 08:49:08 +0000
committerkamil <kamil@NetBSD.org>2020-11-10 08:49:08 +0000
commit679426dc52b7c5ef9223f9ec7065855f81102c78 (patch)
tree830c7f343b515a38c4e7237814dfb43cc31a2882 /warp/warp.h
parentcd6a6786a83c6ffc71841f4c49e6192f2296b2a1 (diff)
downloadbsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.gz
bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.tar.zst
bsdgames-darwin-679426dc52b7c5ef9223f9ec7065855f81102c78.zip
Integrate Warp Kit into the NetBSD build
Fix the build and make it install and run with minimal required changes.
Diffstat (limited to 'warp/warp.h')
-rw-r--r--warp/warp.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/warp/warp.h b/warp/warp.h
index 984c407f..77035fdd 100644
--- a/warp/warp.h
+++ b/warp/warp.h
@@ -12,16 +12,23 @@
*
*/
+#ifndef WARP_H
+#define WARP_H
+
extern int errno;
#include "config.h" /* generated by Configure script */
+#include <term.h>
#include <stdio.h>
#include <signal.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
/* WARPLIB must be readable and writeable by warp, but not by anyone who you
* don't trust. In other words, to set up warp so everyone can play and
@@ -32,7 +39,7 @@ extern int errno;
* access.)
*/
-#define SAVEDIR "./"
+#define SAVEDIR "/var/games"
#define NEWSFILE "warp.news"
#define HELPFILE "warp.doc"
#define LOCKFILE ".warp.lock"
@@ -100,6 +107,8 @@ EXT char amb[YSIZE][XSIZE];
#ifdef TERMIO
# include <termio.h>
+#elif defined TERMIOS
+# include <termios.h>
#else
# include <sgtty.h>
#endif
@@ -429,10 +438,6 @@ EXT int ambsize;
EXT char spbuf[512];
-char *index(), *ttyname(), *malloc(), *ctime(), *strcpy();
-char *getenv(), cmstore(), *tgoto();
-long atol();
-
#define Fclose (void)fclose
#define Fflush (void)fflush
#define Fgets (void)fgets
@@ -443,3 +448,5 @@ long atol();
#define Tract (void)tract
#define Make_object (void)make_object
#define Read_tty (void)read_tty
+
+#endif