aboutsummaryrefslogtreecommitdiff
path: root/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch')
-rw-r--r--packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch b/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
new file mode 100644
index 00000000..011c80c6
--- /dev/null
+++ b/packages/binutils/2.43.1/0008-gold-Deal-with-absence-of-uchar-on-macOS.patch
@@ -0,0 +1,35 @@
+From 5e16cd42ed6c0b626ee47601396517ddb8a6065f Mon Sep 17 00:00:00 2001
+From: Bryan Hundven <bryanhundven@gmail.com>
+Date: Tue, 6 Feb 2024 16:34:38 +1300
+Subject: [PATCH 8/8] gold: Deal with absence of <uchar> on macOS
+
+Add code to provide fallback definitions of char16_t/char32_t on macOS.
+---
+ gold/output.cc | 2 ++
+ gold/stringpool.cc | 2 ++
+ 2 files changed, 4 insertions(+)
+
+--- a/gold/output.cc
++++ b/gold/output.cc
+@@ -29,7 +29,9 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <algorithm>
++#if !defined(__APPLE__)
+ #include <uchar.h>
++#endif
+
+ #ifdef HAVE_SYS_MMAN_H
+ #include <sys/mman.h>
+--- a/gold/stringpool.cc
++++ b/gold/stringpool.cc
+@@ -25,7 +25,9 @@
+ #include <cstring>
+ #include <algorithm>
+ #include <vector>
++#if !defined(__APPLE__)
+ #include <uchar.h>
++#endif
+
+ #include "output.h"
+ #include "parameters.h"