Merge pull request #1808 from kallisti5/haiku-fix-2023

build: Fixes for Haiku
This commit is contained in:
lazymio 2023-03-26 12:17:23 +08:00 committed by GitHub
commit 5e2074da6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 4 deletions

View File

@ -14,5 +14,5 @@ jobs:
days-before-stale: 60
days-before-close: 15
exempt-all-milestones: true
exempt-issue-labels: 'pinned,help wanted'
exempt-issue-labels: 'pinned,help wanted,enhancement,bug'
exempt-pr-labels: 'pinned'

View File

@ -1,5 +1,15 @@
This file details the changelog of Unicorn Engine.
-------------------------------
[Version 2.0.1.post1]: Nov 22nd, 2022
This is a small release to complement the previous 2.0.1 release.
Fix:
- Fix the endianness detection in tests.
- Fix the version number in CMakeLists.txt.
-------------------------------
[Version 2.0.1]: Nov 1st, 2022

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>