mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
31 lines
984 B
Plaintext
31 lines
984 B
Plaintext
From 01854c859bdd8180f730b6cc5ed9ab205e6b979d Mon Sep 17 00:00:00 2001
|
|
From: Oscar Lesta <oscar.lesta@gmail.com>
|
|
Date: Tue, 4 Mar 2025 04:12:02 -0300
|
|
Subject: Make sure it uses the correct libname on Haiku.
|
|
|
|
|
|
diff --git a/bindings/python/unicorn/unicorn_py3/unicorn.py b/bindings/python/unicorn/unicorn_py3/unicorn.py
|
|
index d4a7288..3c50689 100644
|
|
--- a/bindings/python/unicorn/unicorn_py3/unicorn.py
|
|
+++ b/bindings/python/unicorn/unicorn_py3/unicorn.py
|
|
@@ -42,7 +42,7 @@ class uc_mem_region(UcTupledStruct[MemRegionStruct]):
|
|
|
|
|
|
class uc_tb(UcTupledStruct[TBStruct]):
|
|
- """"Translation Block
|
|
+ """Translation Block
|
|
"""
|
|
|
|
_fields_ = (
|
|
@@ -139,6 +139,7 @@ def __load_uc_lib() -> ctypes.CDLL:
|
|
'cygwin': 'cygunicorn.dll',
|
|
'darwin': 'libunicorn.2.dylib',
|
|
'linux': 'libunicorn.so.2',
|
|
+ 'haiku1': 'libunicorn.so.2',
|
|
'linux2': 'libunicorn.so.2',
|
|
'win32': 'unicorn.dll'
|
|
}.get(platform, "libunicorn.so")
|
|
--
|
|
2.48.1
|
|
|