From df69365f5f6676b6990d1eb6723e264f15f70d49 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 7 Jan 1999 21:50:41 +0000 Subject: 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. --- Python/importdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/importdl.c') 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" -- cgit v1.2.1