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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user