Fixed include directive for dlfcn.h: include <dlfcn.h> if HAVE_DLOPEN,
../fake/dlfcn.h otherwise.
This commit is contained in:
parent
d5bbf33756
commit
a723d15160
|
@ -1,11 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* This include file is for systems which do not have dynamic loading.
|
* This include file is for systems which do not have dynamic loading.
|
||||||
*/
|
*/
|
||||||
#if ! defined(HAVE_DLOPEN)
|
|
||||||
|
|
||||||
extern void *dlopen(char *filename, int flags);
|
extern void *dlopen(char *filename, int flags);
|
||||||
extern char *dlerror(void);
|
extern char *dlerror(void);
|
||||||
extern void *dlsym(void *lib, char *name);
|
extern void *dlsym(void *lib, char *name);
|
||||||
extern int dlclose(void *lib);
|
extern int dlclose(void *lib);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -7,11 +7,16 @@
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <nlist.h>
|
#include <nlist.h>
|
||||||
#include "../fake/dlfcn.h"
|
|
||||||
#ifdef USCORE
|
#ifdef USCORE
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_DLOPEN)
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#else
|
||||||
|
#include "../fake/dlfcn.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ! defined(NLIST_HAS_N_NAME)
|
#if ! defined(NLIST_HAS_N_NAME)
|
||||||
#define n_name n_un.n_name
|
#define n_name n_un.n_name
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -7,8 +7,12 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "scheme48.h"
|
#include "scheme48.h"
|
||||||
#include "../fake/dlfcn.h"
|
|
||||||
|
|
||||||
|
#if defined(HAVE_DLOPEN)
|
||||||
|
#include <dlfcn.h>
|
||||||
|
#else
|
||||||
|
#include "../fake/dlfcn.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(RTLD_NOW)
|
#if defined(RTLD_NOW)
|
||||||
#define DLOPEN_MODE RTLD_NOW
|
#define DLOPEN_MODE RTLD_NOW
|
||||||
|
|
Loading…
Reference in New Issue