mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-17 09:10:08 +02:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
From 601657974ad16eb5c41c82a400f084e41ff8e279 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sun, 24 Nov 2019 11:14:44 +0100
|
|
Subject: workaround broken setrlimit on Haiku.
|
|
|
|
|
|
diff --git a/src/pcre2test.c b/src/pcre2test.c
|
|
index 8066d96..7f3c4cf 100644
|
|
--- a/src/pcre2test.c
|
|
+++ b/src/pcre2test.c
|
|
@@ -9173,7 +9173,9 @@ while (argc > 1 && argv[op][0] == '-' && argv[op][1] != 0)
|
|
{
|
|
fprintf(stderr, "pcre2test: setting stack size %luMiB failed: %s\n",
|
|
(unsigned long int)stack_size, strerror(errno));
|
|
+#ifndef __HAIKU__
|
|
exit(1);
|
|
+#endif
|
|
}
|
|
op++;
|
|
argc--;
|
|
--
|
|
2.43.2
|
|
|
|
|
|
From b38e2cef83297fcbc40a79edba84349deabd71ae Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Fri, 1 Mar 2024 11:13:05 +0000
|
|
Subject: Disable AVX2 instructions for Haiku
|
|
|
|
|
|
diff --git a/src/sljit/sljitNativeX86_common.c b/src/sljit/sljitNativeX86_common.c
|
|
index c2c0421..2a9bc4c 100644
|
|
--- a/src/sljit/sljitNativeX86_common.c
|
|
+++ b/src/sljit/sljitNativeX86_common.c
|
|
@@ -516,8 +516,10 @@ static void get_cpu_features(void)
|
|
|
|
if (info[1] & 0x8)
|
|
feature_list |= CPU_FEATURE_TZCNT;
|
|
+#ifndef __HAIKU__
|
|
if (info[1] & 0x20)
|
|
feature_list |= CPU_FEATURE_AVX2;
|
|
+#endif
|
|
}
|
|
|
|
if (max_id >= 1) {
|
|
--
|
|
2.43.2
|
|
|