summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files/patch-rtld
diff options
context:
space:
mode:
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-rtld')
-rw-r--r--lang/intel-compute-runtime/files/patch-rtld2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/intel-compute-runtime/files/patch-rtld b/lang/intel-compute-runtime/files/patch-rtld
index 0bf71919aea1..4487fc0b692b 100644
--- a/lang/intel-compute-runtime/files/patch-rtld
+++ b/lang/intel-compute-runtime/files/patch-rtld
@@ -12,7 +12,7 @@ core/os_interface/linux/os_library_linux.cpp:35:49: error: 'RTLD_DEEPBIND' was n
this->handle = dlopen(0, RTLD_LAZY);
} else {
-#ifdef SANITIZER_BUILD
-+#if defined(SANITIZER_BUILD) || !defined(__linux__)
++#if defined(SANITIZER_BUILD) || !defined(RTLD_DEEPBIND)
constexpr auto dlopenFlag = RTLD_LAZY;
#else
constexpr auto dlopenFlag = RTLD_LAZY | RTLD_DEEPBIND;