diff options
author | Steve Bennett <steveb@workware.net.au> | 2011-04-04 14:28:42 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-06-09 11:45:57 +1000 |
commit | 980235d194353a1ee9109303f5a12bb42f68d6c3 (patch) | |
tree | b139bff3d923c7288952078b0c915abfe776286c /jim-win32compat.h | |
parent | 64716bd6592527d31b6c5e79295d0218afc98682 (diff) | |
download | jimtcl-980235d194353a1ee9109303f5a12bb42f68d6c3.zip jimtcl-980235d194353a1ee9109303f5a12bb42f68d6c3.tar.gz jimtcl-980235d194353a1ee9109303f5a12bb42f68d6c3.tar.bz2 |
Better handling of environ on Mac OS X
Shared libraries can't access environ directly, so use
_NSGetEnviron() on Mac OS X
Also, load modules with (RTLD_NOW | RTLD_LOCAL) instead of RTLD_LAZY
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r-- | jim-win32compat.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/jim-win32compat.h b/jim-win32compat.h index dab0a01..4976579 100644 --- a/jim-win32compat.h +++ b/jim-win32compat.h @@ -15,7 +15,6 @@ #define JIM_ANSIC #define MKDIR_ONE_ARG -#define RTLD_LAZY 0 void *dlopen(const char *path, int mode); int dlclose(void *handle); void *dlsym(void *handle, const char *symbol); |