From: Martin v. Löwis Date: Thu, 18 Oct 2001 21:24:04 +0000 (+0000) Subject: Move dlfcn.h block out of NetBSD block, assuming that NetBSD before X-Git-Tag: v2.2.1c1~1168 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a57f00081b6f83168007fc701447d7926acc6c4;p=thirdparty%2FPython%2Fcpython.git Move dlfcn.h block out of NetBSD block, assuming that NetBSD before 199712 didn't have dlfcn.h, or that it wouldn't conflict with the other stuff defined. --- diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 548863a91708..569a6f52ce83 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -6,18 +6,19 @@ #include #include + #if defined(__NetBSD__) #include #if (NetBSD < 199712) #include #include #define dlerror() "error in dynamic linking" -#else +#endif +#endif /* NetBSD */ + #ifdef HAVE_DLFCN_H #include #endif -#endif -#endif /* NetBSD */ #if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) #define LEAD_UNDERSCORE "_"