Haiku Support

Hope I didn't break things!
This commit is contained in:
Andrew Pamment
2018-10-18 11:36:02 +10:00
parent 93e08c0c3d
commit af8936c02e
18 changed files with 92 additions and 29 deletions

2
deps/jamlib/mbase.c vendored
View File

@@ -85,7 +85,7 @@
#if defined( __LINUX__ )
#include <sys/file.h>
#include <unistd.h>
#if defined(__sun) || defined(__MUSL__)
#if defined(__sun) || defined(__MUSL__) || defined(__HAIKU__)
#include <fcntl.h>
#endif
#endif

View File

@@ -12,9 +12,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#ifndef __HAIKU__
#include <sys/syscall.h>
#endif
#include "randutils.h"
#ifdef HAVE_TLS

View File

@@ -96,7 +96,7 @@
#define OD_DLL
#endif /* !OD_WIN32_STATIC */
#else /* !WIN32 */
#if defined(__unix__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__sun)
#if defined(__unix__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__sun) || defined(__HAIKU__)
#define ODPLAT_NIX
#undef ODPLAT_DOS
#undef DIRSEP