aboutsummaryrefslogtreecommitdiffstats
path: root/dln.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-15 23:35:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-21 17:21:26 +0900
commit371a3a691f17d7fe93c39674d3d5257c8991f0c9 (patch)
tree7ac85e5826cdae6d4f3454bdbebb28f53ef81d64 /dln.c
parent029871c3feb677d97a15658e4907b77181532ad9 (diff)
downloadruby-371a3a691f17d7fe93c39674d3d5257c8991f0c9.tar.gz
Add EXTERNAL_PREFIX to ruby_abi_version
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dln.c b/dln.c
index 259433bf1a..bbed3af78c 100644
--- a/dln.c
+++ b/dln.c
@@ -465,7 +465,7 @@ dln_load(const char *file)
#ifdef RUBY_DLN_CHECK_ABI
typedef unsigned long long abi_version_number;
typedef abi_version_number abi_version_func(void);
- abi_version_func *abi_version_fct = (abi_version_func *)dln_sym(handle, "ruby_abi_version");
+ abi_version_func *abi_version_fct = (abi_version_func *)dln_sym(handle, EXTERNAL_PREFIX "ruby_abi_version");
abi_version_number binary_abi_version = (*abi_version_fct)();
if (binary_abi_version != ruby_abi_version() && abi_check_enabled_p()) {
dln_loaderror("incompatible ABI version of binary - %s", file);