diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 21:24:04 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-10-18 21:24:04 +0000 |
commit | c953a2d1ace4b77bedb31ef2caca61252c5d881e (patch) | |
tree | de5071621c47b6c0dd64e7227f56a23381c1d2c8 /Python/dynload_shlib.c | |
parent | 18f7f09aeed1418833242905604d099639d970dc (diff) | |
download | cpython-c953a2d1ace4b77bedb31ef2caca61252c5d881e.tar.gz |
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.
Diffstat (limited to 'Python/dynload_shlib.c')
-rw-r--r-- | Python/dynload_shlib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 548863a917..569a6f52ce 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -6,18 +6,19 @@ #include <sys/types.h> #include <sys/stat.h> + #if defined(__NetBSD__) #include <sys/param.h> #if (NetBSD < 199712) #include <nlist.h> #include <link.h> #define dlerror() "error in dynamic linking" -#else +#endif +#endif /* NetBSD */ + #ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif -#endif -#endif /* NetBSD */ #if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) #define LEAD_UNDERSCORE "_" |