diff options
author | Guido van Rossum <guido@python.org> | 1998-09-30 14:34:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-09-30 14:34:52 (GMT) |
commit | 65f15d435eef5d84a6eb3da96101f8d188a27257 (patch) | |
tree | 74ccdddd610a4aa110fa4888a4f8d73464e775e8 /Python/importdl.c | |
parent | e504fa289fcb4590afb4078d3267a7247f57eac5 (diff) | |
download | cpython-65f15d435eef5d84a6eb3da96101f8d188a27257.zip cpython-65f15d435eef5d84a6eb3da96101f8d188a27257.tar.gz cpython-65f15d435eef5d84a6eb3da96101f8d188a27257.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 774b7b3..b542ff5 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" |