summaryrefslogtreecommitdiff
path: root/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch')
-rw-r--r--Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch b/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch
new file mode 100644
index 0000000000..f6245174aa
--- /dev/null
+++ b/Ports/bdwgc/patches/0002-Error-on-unknown-arch.patch
@@ -0,0 +1,25 @@
+From 044ec10fa839e67da2adb0990a60d5a02de205a8 Mon Sep 17 00:00:00 2001
+From: Ali Mohammad Pur <ali.mpfard@gmail.com>
+Date: Thu, 24 Feb 2022 01:50:40 +0330
+Subject: [PATCH 2/6] Error on unknown arch
+
+---
+ include/private/gcconfig.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
+index e9d1d42..8e48b66 100644
+--- a/include/private/gcconfig.h
++++ b/include/private/gcconfig.h
+@@ -358,6 +358,8 @@ EXTERN_C_BEGIN
+ # define I386
+ # elif defined(__x86_64__)
+ # define X86_64
++# else
++# error "Invalid arch for serenity"
+ # endif
+ #endif
+ # if defined(__HAIKU__) && (defined(__amd64__) || defined(__x86_64__))
+--
+2.35.1
+