]> skyeroc.xyz Git - dgamelaunch/commitdiff
compile on NetBSD
authorfstd <van.fstd@gmail.com>
Sat, 23 Jan 2016 03:10:36 +0000 (04:10 +0100)
committerfstd <van.fstd@gmail.com>
Sat, 23 Jan 2016 03:10:51 +0000 (04:10 +0100)
dgamelaunch.c
ttyplay.c

index d361f36039f811dd49b9a446962e7273ae3ceccf..fc831a934c95a5cfd91ad6c0a28c83644ac43dda 100644 (file)
 # include <sqlite3.h>
 #endif
 
-#ifndef __FreeBSD__
-# ifdef __APPLE__
-#  include <unistd.h>
-# else
-#  include <crypt.h>
-# endif
-#else
+#if defined(__FreeBSD__)
 # include <libutil.h>
+#elif defined(__NetBSD__)
+# include <util.h>
+#elif defined(__APPLE__)
+# include <unistd.h>
+#else
+# include <crypt.h>
 #endif
 
 #ifdef __linux__
index fbdfdfc936360c18d29b83322f5bf7c38b156460..0fba0f37115e9a8e3a1c558271c0617a1ae0d742 100644 (file)
--- a/ttyplay.c
+++ b/ttyplay.c
@@ -58,7 +58,7 @@
 #include "io.h"
 #include "stripgfx.h"
 
-#ifdef __MACH__
+#if defined(__MACH__) || defined(__NetBSD__)
 typedef void (*sighandler_t)(int);
 #endif