diff --git a/snapshot/mac/process_reader_mac_test.cc b/snapshot/mac/process_reader_mac_test.cc index e2cb0b0a..ae7827bf 100644 --- a/snapshot/mac/process_reader_mac_test.cc +++ b/snapshot/mac/process_reader_mac_test.cc @@ -666,7 +666,7 @@ void VerifyImageExistenceAndTimestamp(const char* path, time_t timestamp) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunguarded-availability" - if (_dyld_shared_cache_contains_path && + if (&_dyld_shared_cache_contains_path && _dyld_shared_cache_contains_path(path)) { #pragma clang diagnostic pop // The timestamp will either match the timestamp of the dyld_shared_cache