diff --git a/src/TiledArray/util/bug.h b/src/TiledArray/util/bug.h index 76c7d0bfa6..ed8ab7bf1a 100644 --- a/src/TiledArray/util/bug.h +++ b/src/TiledArray/util/bug.h @@ -35,7 +35,7 @@ #include #include -#if __APPLE__ +#if defined(__APPLE__) && defined(__x86_64__) #include #include #endif @@ -219,7 +219,7 @@ class MemoryWatchpoint_x86_64 { friend class MemoryWatchPool; void init(bool create) { -#if __APPLE__ +#if defined(__APPLE__) && defined(__x86_64__) x86_debug_state dr; mach_msg_type_number_t dr_count = x86_DEBUG_STATE_COUNT; @@ -261,7 +261,7 @@ class MemoryWatchpoint_x86_64 { throw std::runtime_error( "MemoryWatchpoint_x86_64::MemoryWatchpoint_x86_64(): " "thread_set_state failed"); -#endif // defined(__APPLE__) +#endif // defined(__APPLE__) && defined(__x86_64__) } };