From fa5d1e63c73cfb8b85fb94a9bd073eb34d143742 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 22 Jul 2010 21:44:13 +0200 Subject: Fix: "import termios" doesn't work with dynamically loaded Python. (James Vega) --- src/if_python3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/if_python3.c') diff --git a/src/if_python3.c b/src/if_python3.c index 422878ac0..238f968b3 100644 --- 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 #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 -- cgit v1.2.1