dln.c: raise fatal
* dln.c (dln_load): raise fatal error on OSX not other extension libraries to refer different libruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f2604ef512
commit
55851c982d
6
dln.c
6
dln.c
@ -1330,12 +1330,14 @@ dln_load(const char *file)
|
|||||||
void *ex = dlsym(handle, EXPORT_PREFIX"ruby_xmalloc");
|
void *ex = dlsym(handle, EXPORT_PREFIX"ruby_xmalloc");
|
||||||
if (ex && ex != ruby_xmalloc) {
|
if (ex && ex != ruby_xmalloc) {
|
||||||
|
|
||||||
# if !defined __APPLE__
|
# if defined __APPLE__
|
||||||
/* dlclose() segfaults */
|
/* dlclose() segfaults */
|
||||||
|
rb_fatal("%s - %s", incompatible, file);
|
||||||
|
# else
|
||||||
dlclose(handle);
|
dlclose(handle);
|
||||||
# endif
|
|
||||||
error = incompatible;
|
error = incompatible;
|
||||||
goto failed;
|
goto failed;
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user