Commit 0eb1ed55 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch to bug #472202: Correctly recognize NetBSD before 199712.

parent eee80ee2
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#if defined(__NetBSD__) && (NetBSD < 199712) #if defined(__NetBSD__)
#include <sys/param.h>
#if (NetBSD < 199712)
#include <nlist.h> #include <nlist.h>
#include <link.h> #include <link.h>
#define dlerror() "error in dynamic linking" #define dlerror() "error in dynamic linking"
...@@ -15,8 +17,9 @@ ...@@ -15,8 +17,9 @@
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#endif #endif
#endif /* NetBSD */
#if defined(__OpenBSD__) && !defined(__ELF__) #if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
#define LEAD_UNDERSCORE "_" #define LEAD_UNDERSCORE "_"
#else #else
#define LEAD_UNDERSCORE "" #define LEAD_UNDERSCORE ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment