comparison src/sysdll.c @ 452:3d3049ae1304 r21-2-41

Import from CVS: tag r21-2-41
author cvs
date Mon, 13 Aug 2007 11:40:21 +0200
parents abe6d1db359e
children 42375619fa45
comparison
equal deleted inserted replaced
451:8ad70c5cd5d7 452:3d3049ae1304
28 28
29 /* This whole file is conditional upon HAVE_SHLIB */ 29 /* This whole file is conditional upon HAVE_SHLIB */
30 #ifdef HAVE_SHLIB 30 #ifdef HAVE_SHLIB
31 31
32 /* Thankfully, most systems follow the ELFish dlopen() method. 32 /* Thankfully, most systems follow the ELFish dlopen() method.
33 ** HAVE__DLOPEN is lame, but SCO has their dl* functions as _dl*, and
34 ** unless you include dlfcn.h you don't get the macros to mask them, and
35 ** autoconf fails to find them. No longer true as of 5.0.5.
36 **
37 ** Anybody who wants to use this on SCO needs to have their configure.in
38 ** look for _dlopen() as well as dlopen()
39 */ 33 */
40 #if defined(HAVE_DLOPEN) || defined(HAVE__DLOPEN) || defined(HAVE_DLFCN_H) 34 #if defined(HAVE_DLOPEN)
41 #include <dlfcn.h> 35 #include <dlfcn.h>
42 36
43 #ifndef RTLD_LAZY 37 #ifndef RTLD_LAZY
44 # define RTLD_LAZY 1 38 # define RTLD_LAZY 1
45 #endif /* RTLD_LAZY isn't defined under FreeBSD - ick */ 39 #endif /* RTLD_LAZY isn't defined under FreeBSD - ick */