diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 11:45:19 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 11:45:19 +0000 |
commit | bb668db7d52e3985a905b9b45ee8cd43e6dc9a7f (patch) | |
tree | c2e1e242e9df0d5bb881aabbb9b1ef50b60face3 /Python/dynload_shlib.c | |
parent | e0f1246ebde3f1d90172289edc0c00fcde3573f6 (diff) | |
download | cpython-bb668db7d52e3985a905b9b45ee8cd43e6dc9a7f.tar.gz |
Patch to bug #472202: Correctly recognize NetBSD before 199712.
Diffstat (limited to 'Python/dynload_shlib.c')
-rw-r--r-- | Python/dynload_shlib.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 78a9956858..548863a917 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -6,7 +6,9 @@ #include <sys/types.h> #include <sys/stat.h> -#if defined(__NetBSD__) && (NetBSD < 199712) +#if defined(__NetBSD__) +#include <sys/param.h> +#if (NetBSD < 199712) #include <nlist.h> #include <link.h> #define dlerror() "error in dynamic linking" @@ -15,8 +17,9 @@ #include <dlfcn.h> #endif #endif +#endif /* NetBSD */ -#if defined(__OpenBSD__) && !defined(__ELF__) +#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) #define LEAD_UNDERSCORE "_" #else #define LEAD_UNDERSCORE "" |