Don't require <dlfcn.h> -- rely on existence of dlopen().
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 @@
#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