diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:03:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:03:10 (GMT) |
commit | ca3ab36dfd57c0b369066af3364dd3ede7dbb684 (patch) | |
tree | ce8aaef67aa0fe96f08821954b71216a91a10eea /unix/tclLoadDl.c | |
parent | 96e7bb4e2414da3ff01636dea1a8ffa9eb1080da (diff) | |
download | tcl-ca3ab36dfd57c0b369066af3364dd3ede7dbb684.zip tcl-ca3ab36dfd57c0b369066af3364dd3ede7dbb684.tar.gz tcl-ca3ab36dfd57c0b369066af3364dd3ede7dbb684.tar.bz2 |
Finish the TIP #416 implementation as specified (#define's were still missing). Added warning to "load" documentation. Added test case for using -global without specifying filename.
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r-- | unix/tclLoadDl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c index 267067f..dc711f8 100644 --- a/unix/tclLoadDl.c +++ b/unix/tclLoadDl.c @@ -87,12 +87,12 @@ TclpDlopen( /* * Use (RTLD_NOW|RTLD_LOCAL) as default, see [Bug #3216070] */ - if (flags & 1) { + if (flags & TCL_LOAD_GLOBAL) { dlopenflags |= RTLD_GLOBAL; } else { dlopenflags |= RTLD_LOCAL; } - if (flags & 2) { + if (flags & TCL_LOAD_LAZY) { dlopenflags |= RTLD_LAZY; } else { dlopenflags |= RTLD_NOW; |