aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index a38ff7341d..767bae9479 100644
--- a/dln.c
+++ b/dln.c
@@ -426,7 +426,7 @@ dln_sym(void *handle, const char *symbol)
}
#endif
-#if RUBY_DLN_CHECK_ABI
+#if RUBY_DLN_CHECK_ABI && (defined(_WIN32) || defined(USE_DLN_DLOPEN))
static bool
abi_check_enabled_p(void)
{