summaryrefslogtreecommitdiff
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-30 14:34:52 +0000
committerGuido van Rossum <guido@python.org>1998-09-30 14:34:52 +0000
commit1d2c6e1520c4385244d89c40d8b3275b9397341f (patch)
tree4b3b148e454a3819df14b94d95d05ce8ee10adb1 /Python/importdl.c
parent5b1293b2151e4225182bc8e9fb84c20bc33d045a (diff)
downloadcpython-1d2c6e1520c4385244d89c40d8b3275b9397341f.tar.gz
In FreeBSD when using ELF, an underscore is needed in front of the
function name. (Vladimir Kushnir by way of Thomas Gellekum.)
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 774b7b37a7..b542ff5ad2 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -268,7 +268,7 @@ typedef void (*dl_funcptr)();
extern char *Py_GetProgramName();
#ifndef FUNCNAME_PATTERN
-#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || 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"