diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-01-18 09:01:03 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-01-18 09:52:15 -0500 |
commit | ffda21b7ba451b8fd874e9c8c2162c55053caa1e (patch) | |
tree | 0acbf6b73b7d5c1f6e175a6ac7fb087aad3baf1a /dln.c | |
parent | 54568c949b587f1e71ac38a478696f5c872bb643 (diff) | |
download | ruby-ffda21b7ba451b8fd874e9c8c2162c55053caa1e.tar.gz |
[Feature #18491] Drop support for HP-UX
IA64 support was dropped in ticket #15894, so we can drop support for
HP-UX.
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -139,11 +139,6 @@ static const char funcname_prefix[sizeof(FUNCNAME_PREFIX) - 1] = FUNCNAME_PREFIX # include <dlfcn.h> #endif -#ifdef __hpux -#include <errno.h> -#include "dl.h" -#endif - #if defined(_AIX) #include <ctype.h> /* for isdigit() */ #include <errno.h> /* for global errno */ @@ -393,32 +388,6 @@ dln_load(const char *file) } #endif /* USE_DLN_DLOPEN */ -#ifdef __hpux -#define DLN_DEFINED - { - shl_t lib = NULL; - int flags; - void (*init_fct)(void); - - flags = BIND_DEFERRED; - lib = shl_load(file, flags, 0); - if (lib == NULL) { - extern int errno; - dln_loaderror("%s - %s", strerror(errno), file); - } - shl_findsym(&lib, buf, TYPE_PROCEDURE, (void*)&init_fct); - if (init_fct == NULL) { - shl_findsym(&lib, buf, TYPE_UNDEFINED, (void*)&init_fct); - if (init_fct == NULL) { - errno = ENOSYM; - dln_loaderror("%s - %s", strerror(ENOSYM), file); - } - } - (*init_fct)(); - return (void*)lib; - } -#endif /* hpux */ - #if defined(_AIX) #define DLN_DEFINED { |