Mercurial > vim
changeset 2374:f414e5a4b40e vim73
Fix: "import termios" doesn't work with dynamically loaded Python. (James
Vega)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 22 Jul 2010 21:44:13 +0200 |
parents | f149bb1cf5be |
children | a96dd77ce213 |
files | src/if_python.c src/if_python3.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if_python.c +++ b/src/if_python.c @@ -96,11 +96,11 @@ struct PyMethodDef { Py_ssize_t a; }; # define HINSTANCE long_u /* for generating prototypes */ # endif -#ifndef _WIN32 +#ifndef WIN3264 # include <dlfcn.h> # define FARPROC void* # define HINSTANCE void* -# define load_dll(n) dlopen((n),RTLD_LAZY) +# define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) # define close_dll dlclose # define symbol_from_dll dlsym #else
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -70,11 +70,11 @@ static void init_structs(void); #if defined(DYNAMIC_PYTHON3) -#ifndef _WIN32 +#ifndef WIN3264 #include <dlfcn.h> #define FARPROC void* #define HINSTANCE void* -#define load_dll(n) dlopen((n),RTLD_LAZY) +#define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) #define close_dll dlclose #define symbol_from_dll dlsym #else