Skip to content

Commit 4d67953

Browse files
committed
Fix builds with macOS SDKs older than 10.13
1 parent 449e2f5 commit 4d67953

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libcxx/include/__cxx03/__mbstate_t.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#elif __has_include(<bits/types/mbstate_t.h>)
4343
# include <bits/types/mbstate_t.h> // works on most Unixes
4444
#elif __has_include(<sys/_types/_mbstate_t.h>)
45+
# include <machine/types.h>
4546
# include <sys/_types/_mbstate_t.h> // works on Darwin
4647
#elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include_next(<wchar.h>)
4748
# include_next <wchar.h> // fall back to the C standard provider of mbstate_t

libcxx/include/__mbstate_t.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#elif __has_include(<bits/types/mbstate_t.h>)
4343
# include <bits/types/mbstate_t.h> // works on most Unixes
4444
#elif __has_include(<sys/_types/_mbstate_t.h>)
45+
# include <machine/types.h>
4546
# include <sys/_types/_mbstate_t.h> // works on Darwin
4647
#elif __has_include_next(<wchar.h>)
4748
# include_next <wchar.h> // use the C standard provider of mbstate_t if present

0 commit comments

Comments
 (0)