compile on NetBSD

This commit is contained in:
fstd 2016-01-23 04:10:36 +01:00
parent d996f40af2
commit 673255a5d0
2 changed files with 8 additions and 8 deletions

View File

@ -66,14 +66,14 @@
# include <sqlite3.h> # include <sqlite3.h>
#endif #endif
#ifndef __FreeBSD__ #if defined(__FreeBSD__)
# ifdef __APPLE__
# include <unistd.h>
# else
# include <crypt.h>
# endif
#else
# include <libutil.h> # include <libutil.h>
#elif defined(__NetBSD__)
# include <util.h>
#elif defined(__APPLE__)
# include <unistd.h>
#else
# include <crypt.h>
#endif #endif
#ifdef __linux__ #ifdef __linux__

View File

@ -58,7 +58,7 @@
#include "io.h" #include "io.h"
#include "stripgfx.h" #include "stripgfx.h"
#ifdef __MACH__ #if defined(__MACH__) || defined(__NetBSD__)
typedef void (*sighandler_t)(int); typedef void (*sighandler_t)(int);
#endif #endif