diff options
author | Marcin Gasperowicz <xnooga@gmail.com> | 2020-05-23 18:00:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-23 18:09:07 +0200 |
commit | f4985ca113d968ea3441a80153992f69d4740f90 (patch) | |
tree | eee7bd21493e5b86d82702e383dd86af4659dcc5 /Libraries/LibJS/Heap | |
parent | 679a84d44cc7bb9190c6f1ee0fdedd42b2de5325 (diff) | |
download | serenity-f4985ca113d968ea3441a80153992f69d4740f90.zip |
LibJS: Use __APPLE__ instead of __MACH__ for MacOS build
This is regarding PR #234. Sergey pointed out that not every Mach is Darwin.
Diffstat (limited to 'Libraries/LibJS/Heap')
-rw-r--r-- | Libraries/LibJS/Heap/Heap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Heap/Heap.cpp b/Libraries/LibJS/Heap/Heap.cpp index ae451897ba..805e385297 100644 --- a/Libraries/LibJS/Heap/Heap.cpp +++ b/Libraries/LibJS/Heap/Heap.cpp @@ -37,7 +37,7 @@ #ifdef __serenity__ # include <serenity.h> -#elif __linux__ or __MACH__ +#elif __linux__ or __APPLE__ # include <pthread.h> #endif @@ -157,7 +157,7 @@ void Heap::gather_conservative_roots(HashTable<Cell*>& roots) ASSERT_NOT_REACHED(); } pthread_attr_destroy(&attr); -#elif __MACH__ +#elif __APPLE__ stack_base = (FlatPtr)pthread_get_stackaddr_np(pthread_self()); pthread_attr_t attr = {}; if (int rc = pthread_attr_getstacksize(&attr, &stack_size) != 0) { |