summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-10-18 11:45:19 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-10-18 11:45:19 (GMT)
commit0eb1ed556b3efefd210361c658aab9e808113534 (patch)
treee02accd64f36b276408648749137edb1cbd5af25
parenteee80ee2efa5288b3e30d3336a9fce0ebdde68eb (diff)
downloadcpython-0eb1ed556b3efefd210361c658aab9e808113534.zip
cpython-0eb1ed556b3efefd210361c658aab9e808113534.tar.gz
cpython-0eb1ed556b3efefd210361c658aab9e808113534.tar.bz2
Patch to bug #472202: Correctly recognize NetBSD before 199712.
-rw-r--r--Python/dynload_shlib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c
index 78a9956..548863a 100644
--- a/Python/dynload_shlib.c
+++ b/Python/dynload_shlib.c
@@ -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 ""