Commit Diff


commit - 7b083439c7e85109a2af69c85c8246f9f841954c
commit + b600ed35deac3b5dace5c7d9fa3424d5782afc7d
blob - c333fec445c19b959bfa940280043baaa5a6957c
blob + 2236c51a844dbd334f40fda8f59e137bd5b71412
--- Makefile
+++ Makefile
@@ -4,6 +4,7 @@ PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man
 LIBS = -lncurses
 OBJ = input.o screen.o shapes.o scores.o tetris.o
+CFLAGS += -D_XOPEN_SOURCE=700
 
 all: tetris
 
blob - 2d8f7ba65b67b7d4d84b83fc806170c2bc1c7541
blob + 69898c9825327cf3dff71babadec402ecf9676c6
--- screen.c
+++ screen.c
@@ -54,8 +54,8 @@
 #define sigmask(s) (1 << ((s) - 1))
 #endif
 
-#ifdef __linux__
-# define OXTABS XTABS
+#if defined(__linux__) && !defined(XTABS)
+# define OXTABS 0x01800
 #endif
 
 #include "screen.h"
blob - 44c0df0a35e334b31885123fcc1ece0dff707656
blob + 0a6ef0d49bb1ec4b28630a8dfef8d4a8876bd75b
--- tetris.c
+++ tetris.c
@@ -53,6 +53,10 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+
+#ifdef __linux__
+# include <bsd/stdlib.h>
+#endif
 
 #include "input.h"
 #include "scores.h"