Update of /cvsroot/scsh/scsh-0.6/c/fake
In directory usw-pr-cvs1:/tmp/cvs-serv6040
Modified Files:
dlfcn.h libdl1.c
Log Message:
Fixed include directive for dlfcn.h: include <dlfcn.h> if HAVE_DLOPEN,
../fake/dlfcn.h otherwise.
Index: dlfcn.h
===================================================================
RCS file: /cvsroot/scsh/scsh-0.6/c/fake/dlfcn.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** dlfcn.h 1999/09/14 12:44:53 1.1.1.1
--- dlfcn.h 2001/01/22 12:47:54 1.2
***************
*** 2,11 ****
* 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
--- 2,7 ----
Index: libdl1.c
===================================================================
RCS file: /cvsroot/scsh/scsh-0.6/c/fake/libdl1.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** libdl1.c 2000/12/20 10:43:38 1.5
--- libdl1.c 2001/01/22 12:47:54 1.6
***************
*** 8,14 ****
#include <stdlib.h>
#include <nlist.h>
- #include "../fake/dlfcn.h"
#ifdef USCORE
#include <string.h>
#endif
--- 8,19 ----
#include <stdlib.h>
#include <nlist.h>
#ifdef USCORE
#include <string.h>
+ #endif
+
+ #if defined(HAVE_DLOPEN)
+ #include <dlfcn.h>
+ #else
+ #include "../fake/dlfcn.h"
#endif
|