Changeset 10 for python/trunk/Python/dynload_shlib.c
- Timestamp:
- Sep 3, 2010, 5:33:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Python/dynload_shlib.c
r2 r10 21 21 #else 22 22 #if defined(PYOS_OS2) && defined(PYCC_GCC) 23 #ifdef __KLIBC__ 24 #error "kLIBC has dlfcn.h and shouldn't get here!" 25 #endif 23 26 #include "dlfcn.h" 24 27 #endif 25 28 #endif 26 29 27 #if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) 30 #if ((defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)) \ 31 || (defined(__OS2__) && defined(__KLIBC__)) 28 32 #define LEAD_UNDERSCORE "_" 29 33 #else … … 37 41 {"module.dll", "rb", C_EXTENSION}, 38 42 #else 39 #if defined(PYOS_OS2) && defined(PYCC_GCC)43 #if (defined(PYOS_OS2) && defined(PYCC_GCC)) || (defined(__OS2__) && defined(__KLIBC__)) 40 44 {".pyd", "rb", C_EXTENSION}, 41 45 {".dll", "rb", C_EXTENSION}, … … 128 132 #endif 129 133 134 #if (defined(PYOS_OS2) && defined(PYCC_GCC)) 135 // resolve unixroot 136 if (_realrealpath( pathname, pathbuf, sizeof(pathbuf))!=0) 137 pathname = pathbuf; 138 #endif 139 130 140 handle = dlopen(pathname, dlopenflags); 131 141
Note:
See TracChangeset
for help on using the changeset viewer.