From: Martin v. Löwis Date: Thu, 18 Oct 2001 11:45:19 +0000 (+0000) Subject: Patch to bug #472202: Correctly recognize NetBSD before 199712. X-Git-Tag: v2.2.1c1~1204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eb1ed556b3efefd210361c658aab9e808113534;p=python Patch to bug #472202: Correctly recognize NetBSD before 199712. --- 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 #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 ""