mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Don't require <dlfcn.h> -- rely on existence of dlopen().
This commit is contained in:
parent
6ba1120767
commit
504f4a9901
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,7 @@ typedef void (*dl_funcptr)();
|
||||||
#endif
|
#endif
|
||||||
#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 DYNAMIC_LINK
|
||||||
#define USE_SHLIB
|
#define USE_SHLIB
|
||||||
#endif
|
#endif
|
||||||
|
@ -155,8 +155,10 @@ static void aix_loaderror(char *);
|
||||||
#include <nlist.h>
|
#include <nlist.h>
|
||||||
#include <link.h>
|
#include <link.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef HAVE_DLFCN_H
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifndef _DL_FUNCPTR_DEFINED
|
#ifndef _DL_FUNCPTR_DEFINED
|
||||||
typedef void (*dl_funcptr)();
|
typedef void (*dl_funcptr)();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue