Fix: "import termios" doesn't work with dynamically loaded Python. (James
Vega)
diff --git a/src/if_python.c b/src/if_python.c
index ea2e926..8185fc1 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -96,11 +96,11 @@
# 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
diff --git a/src/if_python3.c b/src/if_python3.c
index 422878a..238f968 100644
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -70,11 +70,11 @@
#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