From 8a57f00081b6f83168007fc701447d7926acc6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 18 Oct 2001 21:24:04 +0000 Subject: 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. --- Python/dynload_shlib.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 548863a..569a6f5 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 "_" -- cgit v0.12