Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba1120 commit 504f4a9Copy full SHA for 504f4a9
1 file changed
Python/importdl.c
@@ -129,7 +129,7 @@ typedef void (*dl_funcptr)();
129
#endif
130
131
132
-#if !defined(DYNAMIC_LINK) && defined(HAVE_DLFCN_H) && (defined(HAVE_DLOPEN) || defined(M_UNIX))
+#if !defined(DYNAMIC_LINK) && (defined(HAVE_DLOPEN) || defined(M_UNIX))
133
#define DYNAMIC_LINK
134
#define USE_SHLIB
135
@@ -155,8 +155,10 @@ static void aix_loaderror(char *);
155
#include <nlist.h>
156
#include <link.h>
157
#else
158
+#ifdef HAVE_DLFCN_H
159
#include <dlfcn.h>
160
161
+#endif
162
#ifndef _DL_FUNCPTR_DEFINED
163
typedef void (*dl_funcptr)();
164
0 commit comments