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.
This commit is contained in:
parent
1fff878c45
commit
8a57f00081
|
@ -6,18 +6,19 @@
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#if (NetBSD < 199712)
|
#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"
|
||||||
#else
|
#endif
|
||||||
|
#endif /* NetBSD */
|
||||||
|
|
||||||
#ifdef HAVE_DLFCN_H
|
#ifdef HAVE_DLFCN_H
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif /* NetBSD */
|
|
||||||
|
|
||||||
#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
|
#if (defined(__OpenBSD__) || defined(__NetBSD__)) && !defined(__ELF__)
|
||||||
#define LEAD_UNDERSCORE "_"
|
#define LEAD_UNDERSCORE "_"
|
||||||
|
|
Loading…
Reference in New Issue