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 /Modules/_ctypes/_ctypes.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 'Modules/_ctypes/_ctypes.c')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 6b1e74434f..33a7f90233 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -5480,14 +5480,14 @@ PyInit__ctypes(void) #endif /* If RTLD_LOCAL is not defined (Windows!), set it to zero. */ -#ifndef RTLD_LOCAL +#if !HAVE_DECL_RTLD_LOCAL #define RTLD_LOCAL 0 #endif /* If RTLD_GLOBAL is not defined (cygwin), set it to the same value as RTLD_LOCAL. */ -#ifndef RTLD_GLOBAL +#if !HAVE_DECL_RTLD_GLOBAL #define RTLD_GLOBAL RTLD_LOCAL #endif |