From 679426dc52b7c5ef9223f9ec7065855f81102c78 Mon Sep 17 00:00:00 2001 From: kamil Date: Tue, 10 Nov 2020 08:49:08 +0000 Subject: Integrate Warp Kit into the NetBSD build Fix the build and make it install and run with minimal required changes. --- warp/warp.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'warp/warp.h') 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 #include #include #include #include #include #include +#include +#include +#include /* 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 +#elif defined TERMIOS +# include #else # include #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 -- cgit v1.2.3-56-ge451