summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-04 06:44:44 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-04 06:44:44 (GMT)
commitc2f7d878972db908f5a1bad7af94c692b6d8c564 (patch)
tree5687eaadba2b722df2bf6c954fc44ebdcf67bcdf /Python
parent0e120525f0a2dfcd417905593cad27169907a4d5 (diff)
downloadcpython-c2f7d878972db908f5a1bad7af94c692b6d8c564.zip
cpython-c2f7d878972db908f5a1bad7af94c692b6d8c564.tar.gz
cpython-c2f7d878972db908f5a1bad7af94c692b6d8c564.tar.bz2
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')
-rw-r--r--Python/pystate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 0503f32..ba4dd4c 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;