1
0
mirror of https://github.com/simh/simh.git synced 2026-02-13 03:15:25 +00:00

SCP: Default to dynamically loading LIBEDIT, LIBPCRE and LIBPNG

This commit is contained in:
Mark Pizzolato
2023-07-23 11:31:24 -10:00
parent 9932fd1610
commit 63028863e4
7 changed files with 317 additions and 112 deletions

View File

@@ -6341,15 +6341,13 @@ else
_rand_uuid_gen (uuidaddr);
}
#elif defined (SIM_HAVE_DLOPEN)
#include <dlfcn.h>
static void
uuid_gen (void *uuidaddr)
{
void (*uuid_generate_c) (void *) = NULL;
void *handle;
handle = dlopen("libuuid." __STR(SIM_HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
handle = dlopen("libuuid." __STR(SIM_DLOPEN_EXTENSION), RTLD_NOW|RTLD_GLOBAL);
if (handle)
uuid_generate_c = (void (*)(void *))((size_t)dlsym(handle, "uuid_generate"));
if (uuid_generate_c)