build: Fixes for Haiku

* Haiku is fully posix, so can be lumped together with most unix cases
This commit is contained in:
Alexander von Gluck IV 2023-03-22 13:57:12 -05:00
parent 7b8c63dfe6
commit d504e3a004
2 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ GRand *g_rand_new_with_seed_array (const guint32 *seed, guint seed_length)
gint64 g_get_real_time (void)
{
#if defined(unix) || defined(__unix__) || defined(__unix) || defined (__MINGW32__) || defined(__APPLE__)
#if defined(unix) || defined(__unix__) || defined(__unix) || defined (__MINGW32__) || defined(__APPLE__) || defined(__HAIKU__)
struct timeval r;
/* this is required on alpha, there the timeval structs are ints
@ -271,7 +271,7 @@ gint64 g_get_real_time (void)
GRand *g_rand_new (void)
{
guint32 seed[4];
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__)
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__) || defined(__HAIKU__)
static gboolean dev_urandom_exists = TRUE;
if (dev_urandom_exists)

View File

@ -270,7 +270,7 @@
#include <string.h>
#include <setjmp.h>
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__)
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(__APPLE__) || defined(__HAIKU__)
#define ACUTEST_UNIX_ 1
#include <errno.h>
#include <libgen.h>