[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/31320] binutils-2.42 build failure on macos - error: 'uchar.h'
From: |
bryanhundven at gmail dot com |
Subject: |
[Bug gold/31320] binutils-2.42 build failure on macos - error: 'uchar.h' file not found |
Date: |
Wed, 06 Mar 2024 00:37:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31320
--- Comment #4 from Bryan Hundven <bryanhundven at gmail dot com> ---
My previous patch did not work. This one does:
```
diff --git a/gold/output.cc b/gold/output.cc
index ead67f20..2dbaa2ee 100644
--- 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>
diff --git a/gold/stringpool.cc b/gold/stringpool.cc
index d8f38cfa..eca59bad 100644
--- 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"
```
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/31320] binutils-2.42 build failure on macos - error: 'uchar.h' file not found,
bryanhundven at gmail dot com <=