summaryrefslogtreecommitdiffstats
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-06-27 13:15:15 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-06-27 13:15:15 (GMT)
commiteceb3e3f0a7d0f58ac75b46cc1c907eaf21dd472 (patch)
treefed0f6b3552e28fbb54f97abffdeddf2cacf9c74 /Python/importdl.c
parentf9480ce4d43187c3c7acce2a575a886b5d11d88a (diff)
downloadcpython-eceb3e3f0a7d0f58ac75b46cc1c907eaf21dd472.zip
cpython-eceb3e3f0a7d0f58ac75b46cc1c907eaf21dd472.tar.gz
cpython-eceb3e3f0a7d0f58ac75b46cc1c907eaf21dd472.tar.bz2
Porting to CW CFM68K
Diffstat (limited to 'Python/importdl.c')
-rw-r--r--Python/importdl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 189bc43..16b50af 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -151,7 +151,7 @@ typedef void (*dl_funcptr)();
#ifdef USE_MAC_DYNAMIC_LOADING
#include <CodeFragments.h>
-#ifdef __CFM68K__ /* Really just an older version of Universal Headers */
+#ifdef SYMANTEC__CFM68K__ /* Really just an older version of Universal Headers */
#define CFragConnectionID ConnectionID
#define kLoadCFrag 0x01
#endif
@@ -268,7 +268,10 @@ load_dynamic_module(name, pathname, fp)
/* First resolve any aliases to find the real file */
(void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec);
+#if !(defined(__MWERKS__) && defined(__CFM68K__))
+ /* Bug: not in library */
err = ResolveAliasFile(&libspec, 1, &isfolder, &didsomething);
+#endif
if ( err ) {
sprintf(buf, "%s: %s", pathname, PyMac_StrError(err));
err_setstr(ImportError, buf);