Fixed include directive for dlfcn.h: include <dlfcn.h> if HAVE_DLOPEN,

../fake/dlfcn.h otherwise.
This commit is contained in:
mainzelm 2001-01-22 12:48:00 +00:00
parent d5bbf33756
commit a723d15160
3 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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