summaryrefslogtreecommitdiff
path: root/src/if_python3.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-22 21:44:13 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-22 21:44:13 +0200
commitfa5d1e63c73cfb8b85fb94a9bd073eb34d143742 (patch)
tree5a5bf0ac27cb7ee1330d8e822aa87bfd7f77615b /src/if_python3.c
parent2334b6d59446dfa09680d4971b5fdb05c396ee79 (diff)
downloadvim-git-fa5d1e63c73cfb8b85fb94a9bd073eb34d143742.tar.gz
Fix: "import termios" doesn't work with dynamically loaded Python. (James
Vega)
Diffstat (limited to 'src/if_python3.c')
-rw-r--r--src/if_python3.c4
1 files changed, 2 insertions, 2 deletions
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 <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