mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #26932: Fixed support of RTLD_* constants defined as enum values,
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
This commit is contained in:
parent
0e120525f0
commit
c2f7d87897
8 changed files with 124 additions and 12 deletions
|
@ -25,7 +25,7 @@ to avoid the expense of doing their own locking).
|
|||
#ifdef HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
#ifndef RTLD_LAZY
|
||||
#if !HAVE_DECL_RTLD_LAZY
|
||||
#define RTLD_LAZY 1
|
||||
#endif
|
||||
#endif
|
||||
|
@ -91,7 +91,7 @@ PyInterpreterState_New(void)
|
|||
interp->fscodec_initialized = 0;
|
||||
interp->importlib = NULL;
|
||||
#ifdef HAVE_DLOPEN
|
||||
#ifdef RTLD_NOW
|
||||
#if HAVE_DECL_RTLD_NOW
|
||||
interp->dlopenflags = RTLD_NOW;
|
||||
#else
|
||||
interp->dlopenflags = RTLD_LAZY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue