pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1:   #ifndef TESTING   # include "global.h"   # include "interpret.h"   # include "constants.h"   # include "error.h"   # include "module.h"   # include "stralloc.h"   # include "pike_macros.h"   #endif    - #if !defined(HAVE_DLSYM) || !defined(HAVE_DLOPEN) - #undef HAVE_DLOPEN - #endif -  +    #if !defined(HAVE_DLOPEN) && defined(HAVE_DLD_LINK) && defined(HAVE_DLD_GET_FUNC)   #define USE_DLD   #endif      #if defined(HAVE_DLOPEN) || defined(USE_DLD)      typedef void (*modfun)(void);      #ifdef USE_DLD   #include <dld.h>
pike.git/src/dynamic_load.c:66:   #include <dlfcn.h>   #endif      #define dlinit()   #endif      #ifndef RTLD_NOW   #define RTLD_NOW 0   #endif    +    #endif /* HAVE_DLOPEN || USE_DLD */      #ifndef TESTING      #if defined(HAVE_DLOPEN) || defined(USE_DLD)      struct module_list   {    struct module_list * next;    void *module;