Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 4068:4c54ecfadce5 legacy-trunk
Don't require <dlfcn.h> -- rely on existence of dlopen().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 20 Aug 1996 19:59:07 +0000 |
| parents | 6b4d0f1a0ae9 |
| children | 1427d61f1307 |
line wrap: on
line diff
--- a/Python/importdl.c Tue Aug 20 19:57:53 1996 +0000 +++ b/Python/importdl.c Tue Aug 20 19:59:07 1996 +0000 @@ -129,7 +129,7 @@ #endif #endif -#if !defined(DYNAMIC_LINK) && defined(HAVE_DLFCN_H) && (defined(HAVE_DLOPEN) || defined(M_UNIX)) +#if !defined(DYNAMIC_LINK) && (defined(HAVE_DLOPEN) || defined(M_UNIX)) #define DYNAMIC_LINK #define USE_SHLIB #endif @@ -155,8 +155,10 @@ #include <nlist.h> #include <link.h> #else +#ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif +#endif #ifndef _DL_FUNCPTR_DEFINED typedef void (*dl_funcptr)(); #endif
