summaryrefslogtreecommitdiff
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-07 21:50:41 +0000
committerGuido van Rossum <guido@python.org>1999-01-07 21:50:41 +0000
commitdf69365f5f6676b6990d1eb6723e264f15f70d49 (patch)
treec72045669015a21e9a71acd00328d080a2b7f78f /Python/importdl.c
parent257fd514a365c8b315540d889eec2156b1c86418 (diff)
downloadcpython-git-df69365f5f6676b6990d1eb6723e264f15f70d49.tar.gz
Ty Sarna writes:
The following patches (relative to 1.5.2b1) enable Python dynamic loading to work on NetBSD platforms that use ELF (presnetly mips and alpha systems). They automaticly determine wether the system is ELF or a.out rather than using astatic list of platforms so that when other NetBSD platforms move to ELF, python will continue to work without change.
Diffstat (limited to 'Python/importdl.c')
-rw-r--r--Python/importdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 7493e58006..073e23f400 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -260,7 +260,7 @@ typedef void (*dl_funcptr)();
extern char *Py_GetProgramName();
#ifndef FUNCNAME_PATTERN
-#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) && !defined(__ELF__) || defined(__OpenBSD__) || defined(__BORLANDC__)
+#if defined(__hp9000s300) || (defined(__NetBSD__) || defined(__FreeBSD__)) && !defined(__ELF__) || defined(__OpenBSD__) || defined(__BORLANDC__)
#define FUNCNAME_PATTERN "_init%.200s"
#else
#define FUNCNAME_PATTERN "init%.200s"