Files
haikuports/app-emulation/qemu/patches/qemu-8.1.5.patchset
2024-03-15 17:44:00 +01:00

70 lines
1.9 KiB
Plaintext

From 213c05df476769966f2db0884315646787616f0f Mon Sep 17 00:00:00 2001
From: Alexander von Gluck IV <kallisti5@unixzen.com>
Date: Tue, 18 May 2021 16:49:20 -0500
Subject: haiku: fixes and patches, rebased from qemu 3.x
diff --git a/disas/nanomips.c b/disas/nanomips.c
index a025359..e877de2 100644
--- a/disas/nanomips.c
+++ b/disas/nanomips.c
@@ -30,10 +30,14 @@
#include "qemu/osdep.h"
#include "disas/dis-asm.h"
+#ifndef __HAIKU__
typedef int64_t int64;
typedef uint64_t uint64;
typedef uint32_t uint32;
typedef uint16_t uint16;
+#else
+#include <SupportDefs.h>
+#endif
typedef uint64_t img_address;
typedef enum {
diff --git a/util/notify.c b/util/notify.c
index 76bab21..7c1ea84 100644
--- a/util/notify.c
+++ b/util/notify.c
@@ -67,6 +67,10 @@ int notifier_with_return_list_notify(NotifierWithReturnList *list, void *data)
int ret = 0;
QLIST_FOREACH_SAFE(notifier, &list->notifiers, node, next) {
+ #ifdef __HAIKU__
+ if(notifier->notify == NULL) break;
+ #endif
+
ret = notifier->notify(notifier, data);
if (ret != 0) {
break;
--
2.42.0
From 2a539ebf7f9fa0d8f2d59fdebfd062b4de16b8ed Mon Sep 17 00:00:00 2001
From: David Karoly <david.karoly@outlook.com>
Date: Fri, 8 Dec 2023 15:49:29 +0100
Subject: Haiku: fix build
diff --git a/meson.build b/meson.build
index a9c4f28..319ade2 100644
--- a/meson.build
+++ b/meson.build
@@ -277,9 +277,9 @@ endif
# instead, we can't add -no-pie because it overrides -shared: the linker then
# tries to build an executable instead of a shared library and fails. So
# don't add -no-pie anywhere and cross fingers. :(
-if not get_option('b_pie')
- qemu_common_flags += cc.get_supported_arguments('-fno-pie', '-no-pie')
-endif
+#if not get_option('b_pie')
+# qemu_common_flags += cc.get_supported_arguments('-fno-pie', '-no-pie')
+#endif
if not get_option('stack_protector').disabled()
stack_protector_probe = '''
--
2.42.1