0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

Fix: "import termios" doesn't work with dynamically loaded Python. (James

Vega)
This commit is contained in:
Bram Moolenaar
2010-07-22 21:44:13 +02:00
parent 2334b6d594
commit fa5d1e63c7
2 changed files with 4 additions and 4 deletions

View File

@@ -96,11 +96,11 @@ struct PyMethodDef { Py_ssize_t a; };
# define HINSTANCE long_u /* for generating prototypes */ # define HINSTANCE long_u /* for generating prototypes */
# endif # endif
#ifndef _WIN32 #ifndef WIN3264
# include <dlfcn.h> # include <dlfcn.h>
# define FARPROC void* # define FARPROC void*
# define HINSTANCE 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 close_dll dlclose
# define symbol_from_dll dlsym # define symbol_from_dll dlsym
#else #else

View File

@@ -70,11 +70,11 @@ static void init_structs(void);
#if defined(DYNAMIC_PYTHON3) #if defined(DYNAMIC_PYTHON3)
#ifndef _WIN32 #ifndef WIN3264
#include <dlfcn.h> #include <dlfcn.h>
#define FARPROC void* #define FARPROC void*
#define HINSTANCE 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 close_dll dlclose
#define symbol_from_dll dlsym #define symbol_from_dll dlsym
#else #else