diff options
author | Guido van Rossum <guido@python.org> | 1996-08-20 19:59:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-20 19:59:07 (GMT) |
commit | 504f4a9901d9e33438eec36da9c4b5cbabc61fdf (patch) | |
tree | 45235b2de27327b38ebbc5c821062016014f3a9b /Python/importdl.c | |
parent | 6ba11207679449f37c94fa958be91dc78e3d4aa4 (diff) | |
download | cpython-504f4a9901d9e33438eec36da9c4b5cbabc61fdf.zip cpython-504f4a9901d9e33438eec36da9c4b5cbabc61fdf.tar.gz cpython-504f4a9901d9e33438eec36da9c4b5cbabc61fdf.tar.bz2 |
Don't require <dlfcn.h> -- rely on existence of dlopen().
Diffstat (limited to 'Python/importdl.c')
-rw-r--r-- | Python/importdl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 3ca185f..b910374 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -129,7 +129,7 @@ typedef void (*dl_funcptr)(); #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 @@ static void aix_loaderror(char *); #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 |