mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-13 17:57:35 +00:00
18 lines
844 B
Diff
18 lines
844 B
Diff
Index: llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7/libcxx/include/__mbstate_t.h
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7.orig/libcxx/include/__mbstate_t.h
|
|
+++ llvm-toolchain-snapshot_17~++20230530094321+b187215a44f7/libcxx/include/__mbstate_t.h
|
|
@@ -35,7 +35,11 @@
|
|
# define __CORRECT_ISO_CPP_WCHAR_H_PROTO
|
|
#endif
|
|
|
|
-#if __has_include(<bits/types/mbstate_t.h>)
|
|
+
|
|
+#if __has_include(<bits/alltypes.h>) // Probe for musl
|
|
+#define __NEED_mbstate_t // Tell musl we need __mbstate_t (and nothing else)
|
|
+#include <bits/alltypes.h>
|
|
+#elif __has_include(<bits/types/mbstate_t.h>)
|
|
# include <bits/types/mbstate_t.h> // works on most Unixes
|
|
#elif __has_include(<sys/_types/_mbstate_t.h>)
|
|
# include <sys/_types/_mbstate_t.h> // works on Darwin
|