Commit Diff


commit - 2e032d404070bcc82a37fed6665426f1846bce43
commit + 84c906a74dea63400cc684f4908cc52793ec1825
blob - c759b7a1df1590c07f02959f3af8069962e1c306
blob + fa95b31e6c25c5800370bb1486a18a20d432fe7b
--- scores.c
+++ scores.c
@@ -52,6 +52,12 @@
 #include <time.h>
 #include <term.h>
 #include <unistd.h>
+
+#ifdef __FreeBSD__
+# include <sys/endian.h>
+# define swap32 bswap32
+# define swap64 bswap64
+#endif
 
 #include "pathnames.h"
 #include "screen.h"
blob - d00f79db4bbe1a8f0f3d8c15a8574716e38048a4
blob + 94b4c00e26c1fb64f5e6f4cf9afef7147badf02b
--- tetris.h
+++ tetris.h
@@ -36,6 +36,16 @@
 
 #include <sys/types.h>
 
+#ifndef __dead
+# ifdef __dead2
+#  define __dead __dead2
+# else
+#  define __dead
+# endif
+#endif
+
+
+
 /*
  * Definitions for Tetris.
  */