/* * HPUX 10.0 dynamic loader stuff * Not needed under HPUX 11.0 which has dlopen() etc. * * This header needs to be seen with -DHPUX_10_DL * * Note: configure needs * * a) void *symlist1 = { * changed to * void *symlist1[] = { * * Otherwise configure thinks dynamic stuff is broken. * * b) The test for dlopen needs to be faked out * I created a dummy with stub entries for dlopen, dlerror and * dlsym otherwise configure thinks there are no entries. * There is probably a smarter way. * * Tested using HP' cc compiler under HPUX 10.20. * Compiled with -Aa +DAportable */ #if defined(HPUX_10_DL) #if !defined(DLFCN_INC) #define DLFCN_INC 1 #include #define RTLD_LAZY BIND_DEFERRED #define RTLD_GLOBAL DYNAMIC_PATH char *zsh_gl_sym_addr ; #define dlopen(file,mode) (void *)shl_load((file), (mode), (long) 0) #define dlclose(handle) shl_unload((shl_t)(handle)) #define dlsym(handle,name) (zsh_gl_sym_addr=0,shl_findsym((shl_t *)&(handle),name,TYPE_UNDEFINED,&zsh_gl_sym_addr), (void *)zsh_gl_sym_addr) #define dlerror() 0 #endif #endif