From 0eb1ed556b3efefd210361c658aab9e808113534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 18 Oct 2001 11:45:19 +0000 Subject: [PATCH] Patch to bug #472202: Correctly recognize NetBSD before 199712. --- Python/dynload_shlib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 78a99568587..548863a9170 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -6,7 +6,9 @@ #include #include -#if defined(__NetBSD__) && (NetBSD < 199712) +#if defined(__NetBSD__) +#include +#if (NetBSD < 199712) #include #include #define dlerror() "error in dynamic linking" @@ -15,8 +17,9 @@ #include #endif #endif +#endif /* NetBSD */ -#if defined(__OpenBSD__) && !defined(__ELF__) +#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) #define LEAD_UNDERSCORE "_" #else #define LEAD_UNDERSCORE ""