Add EXTERNAL_PREFIX to ruby_abi_version

This commit is contained in:
Nobuyoshi Nakada 2023-11-15 23:35:58 +09:00
parent 029871c3fe
commit 371a3a691f

2
dln.c
View file

@ -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);