diff --git a/src/coreclr/gc/unix/numasupport.cpp b/src/coreclr/gc/unix/numasupport.cpp index 713811a1e997a..cec61e59073c2 100644 --- a/src/coreclr/gc/unix/numasupport.cpp +++ b/src/coreclr/gc/unix/numasupport.cpp @@ -54,7 +54,7 @@ static int GetNodeNum(const char* path, bool firstOnly) void NUMASupportInitialize() { #ifdef TARGET_LINUX - if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0 && errno == ENOSYS) + if (syscall(__NR_get_mempolicy, NULL, NULL, 0, 0, 0) < 0) return; int highestNumaNode = GetNodeNum("/sys/devices/system/node", false);