Mercurial > cpython-lru_cache-weakref
diff Python/dynload_shlib.c @ 20510:bdc486c66df0 legacy-trunk
Patch to bug #472202: Correctly recognize NetBSD before 199712.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 18 Oct 2001 11:45:19 +0000 |
| parents | 4d2cb6eaa411 |
| children | 73a1395a2351 |
line wrap: on
line diff
--- a/Python/dynload_shlib.c Thu Oct 18 11:39:34 2001 +0000 +++ b/Python/dynload_shlib.c Thu Oct 18 11:45:19 2001 +0000 @@ -6,7 +6,9 @@ #include <sys/types.h> #include <sys/stat.h> -#if defined(__NetBSD__) && (NetBSD < 199712) +#if defined(__NetBSD__) +#include <sys/param.h> +#if (NetBSD < 199712) #include <nlist.h> #include <link.h> #define dlerror() "error in dynamic linking" @@ -15,8 +17,9 @@ #include <dlfcn.h> #endif #endif +#endif /* NetBSD */ -#if defined(__OpenBSD__) && !defined(__ELF__) +#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__) #define LEAD_UNDERSCORE "_" #else #define LEAD_UNDERSCORE ""
