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.
|
||||
*/
|
||||
#if ! defined(HAVE_DLOPEN)
|
||||
|
||||
extern void *dlopen(char *filename, int flags);
|
||||
extern char *dlerror(void);
|
||||
extern void *dlsym(void *lib, char *name);
|
||||
extern int dlclose(void *lib);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -7,11 +7,16 @@
|
|||
#include "sysdep.h"
|
||||
#include <stdlib.h>
|
||||
#include <nlist.h>
|
||||
#include "../fake/dlfcn.h"
|
||||
#ifdef USCORE
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_DLOPEN)
|
||||
#include <dlfcn.h>
|
||||
#else
|
||||
#include "../fake/dlfcn.h"
|
||||
#endif
|
||||
|
||||
#if ! defined(NLIST_HAS_N_NAME)
|
||||
#define n_name n_un.n_name
|
||||
#endif
|
||||
|
|
|
@ -7,8 +7,12 @@
|
|||
#include <unistd.h>
|
||||
#include "sysdep.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)
|
||||
#define DLOPEN_MODE RTLD_NOW
|
||||
|
|
Loading…
Reference in New Issue