diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-04 09:44:44 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-04 09:44:44 +0300 |
commit | b7f049ff2025c759f7c52ced5204cc05ef22fe86 (patch) | |
tree | 77f738cf6d178a1b7b25b9940ee678c882098ee8 /Python/pystate.c | |
parent | 90884dad8de46b8c5ea3292d85d108359423504d (diff) | |
download | cpython-b7f049ff2025c759f7c52ced5204cc05ef22fe86.tar.gz |
Issue #26932: Fixed support of RTLD_* constants defined as enum values,
not via macros (in particular on Android). Patch by Chi Hsuan Yen.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 0503f32670..ba4dd4c2b5 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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; |