Merge pull request #1808 from kallisti5/haiku-fix-2023
build: Fixes for Haiku
This commit is contained in:
commit
5e2074da6a
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -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'
|
||||
|
10
ChangeLog
10
ChangeLog
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user