Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 18be8bf

Browse files
authored
Merge pull request #2015 from yshui/musl_libc_src_core_sys_posix_dlfcn
Add musl libc definitions to: src_core_sys_posix_dlfcn merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2 parents eb36c84 + d1148e7 commit 18be8bf

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/core/sys/posix/dlfcn.d

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,18 @@ else version( CRuntime_Bionic )
291291
void* dli_saddr;
292292
}
293293
}
294+
else version( CRuntime_Musl )
295+
{
296+
enum {
297+
RTLD_LAZY = 1,
298+
RTLD_NOW = 2,
299+
RTLD_NOLOAD = 4,
300+
RTLD_NODELETE = 4096,
301+
RTLD_GLOBAL = 256,
302+
RTLD_LOCAL = 0,
303+
}
304+
int dlclose(void*);
305+
const(char)* dlerror();
306+
void* dlopen(in char*, int);
307+
void* dlsym(void*, in char*);
308+
}

0 commit comments

Comments
 (0)