summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDl.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-04 21:19:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-04 21:19:59 (GMT)
commited985943f3df9f3ed7b6cc8130c0e67cece08dfd (patch)
treec75eb6e59148cd2377cbdd828dce331083050152 /unix/tclLoadDl.c
parent650605595407701981f6662028e353accea5d38c (diff)
downloadtcl-ed985943f3df9f3ed7b6cc8130c0e67cece08dfd.zip
tcl-ed985943f3df9f3ed7b6cc8130c0e67cece08dfd.tar.gz
tcl-ed985943f3df9f3ed7b6cc8130c0e67cece08dfd.tar.bz2
Handle "Unload" as well
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r--unix/tclLoadDl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c
index 73a44f2..0fef500 100644
--- a/unix/tclLoadDl.c
+++ b/unix/tclLoadDl.c
@@ -202,6 +202,14 @@ FindSymbol(
if (proc == NULL) {
proc = dlsym(handle, native); /* INTL: Native. */
}
+ if (proc == NULL) {
+ TclDStringAppendLiteral(&newName, "i");
+ native = Tcl_DStringValue(&newName);
+ proc = dlsym(handle, native + 1); /* INTL: Native. */
+ }
+ if (proc == NULL) {
+ proc = dlsym(handle, native); /* INTL: Native. */
+ }
Tcl_DStringFree(&newName);
}
#endif