diff --git a/Makefile b/Makefile index 7299eda..1881f88 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ INSTALL = install -c DEFS = -DVERSION=\"$(VERSION)\" SRCS = virus.c ttyrec.c dgamelaunch.c io.c ttyplay.c mygetnstr.c stripgfx.c strlcpy.c strlcat.c y.tab.c lex.yy.c OBJS = $(SRCS:.c=.o) -LIBS = -lncurses -lcrypt -lutil -ll +LIBS = -lcurses -lcrypt -ll all: $(NAME) diff --git a/dgamelaunch.c b/dgamelaunch.c index f65f90e..958a372 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -49,7 +49,7 @@ /* program stuff */ #include -#include +#include #include #include /* for flock() */ #include diff --git a/dgamelaunch.h b/dgamelaunch.h index 672dfa3..7e3de91 100644 --- a/dgamelaunch.h +++ b/dgamelaunch.h @@ -7,7 +7,9 @@ #include /* Default - should work everywhere */ -#define USE_OPENPTY +#if defined(__linux__) || defined(BSD) +# define USE_OPENPTY +#endif #define NOSTREAMS struct dg_user diff --git a/mygetnstr.c b/mygetnstr.c index 3450f74..0377806 100644 --- a/mygetnstr.c +++ b/mygetnstr.c @@ -31,7 +31,7 @@ * OF SUCH DAMAGE. */ -#include +#include /* Assumes noecho(). */ /* As with getnstr(), maxlen does not include the '\0' character. */ diff --git a/ttyplay.c b/ttyplay.c index 36d4cae..1fc9d7f 100644 --- a/ttyplay.c +++ b/ttyplay.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include "ttyrec.h" #include "io.h" #include "stripgfx.h"