From: Guido van Rossum Date: Tue, 20 Aug 1996 19:59:07 +0000 (+0000) Subject: Don't require -- rely on existence of dlopen(). X-Git-Tag: v1.4b3~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=504f4a9901d9e33438eec36da9c4b5cbabc61fdf;p=thirdparty%2FPython%2Fcpython.git Don't require -- rely on existence of dlopen(). --- diff --git a/Python/importdl.c b/Python/importdl.c index 3ca185f38adc..b9103746d3c3 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 #include #else +#ifdef HAVE_DLFCN_H #include #endif +#endif #ifndef _DL_FUNCPTR_DEFINED typedef void (*dl_funcptr)(); #endif