]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't require <dlfcn.h> -- rely on existence of dlopen().
authorGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 19:59:07 +0000 (19:59 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Aug 1996 19:59:07 +0000 (19:59 +0000)
Python/importdl.c

index 3ca185f38adccb4eebbce9b459289e934539cdec..b9103746d3c3ae4ed1119716c2a5ff6fe4131338 100644 (file)
@@ -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