diff options
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/locale.cpp | 2 | ||||
-rw-r--r-- | libcxx/src/thread.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index d95d0c9c954..ac1952151a0 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -1015,6 +1015,8 @@ ctype<char>::classic_table() _NOEXCEPT // going to end up dereferencing it later... #elif defined(EMSCRIPTEN) return *__ctype_b_loc(); +#elif defined(_AIX) + return (const unsigned long *)__lc_ctype_ptr->obj->mask; #else // Platform not supported: abort so the person doing the port knows what to // fix diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index 1fd8bb047c8..cdfa2fd9273 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -14,9 +14,9 @@ #include "limits" #include <sys/types.h> #if !defined(_WIN32) -#if !defined(__sun__) && !defined(__linux__) +#if !defined(__sun__) && !defined(__linux__) && !defined(_AIX) #include <sys/sysctl.h> -#endif // !__sun__ && !__linux__ +#endif // !__sun__ && !__linux__ && !_AIX #include <unistd.h> #endif // !_WIN32 |