diff options
Diffstat (limited to 'warp/warp.h')
-rw-r--r-- | warp/warp.h | 17 |
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 |