diff options
| author | Isaac Andrade <andradei@proton.me> | 2024-08-28 22:15:11 -0600 |
|---|---|---|
| committer | Isaac Andrade <andradei@proton.me> | 2024-08-28 22:15:11 -0600 |
| commit | 4577d541ec2b807df02c40f187a4c44dc7aa2e0f (patch) | |
| tree | f92105c3e2db97ed18fadb8a089bce128edd8cbd /core/sys | |
| parent | f0e631cfa348790294355d3cbc481f5984077254 (diff) | |
Add contants RTLD contants on os_linux and posix (dlfcn).
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/posix/dlfcn.odin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/sys/posix/dlfcn.odin b/core/sys/posix/dlfcn.odin index 0ddc41337..6a467a2bd 100644 --- a/core/sys/posix/dlfcn.odin +++ b/core/sys/posix/dlfcn.odin @@ -111,6 +111,15 @@ when ODIN_OS == .Darwin { RTLD_LOCAL :: RTLD_Flags{RTLD_Flag_Bits(log2(_RTLD_LOCAL))} +} else when ODIN_OS == .Linux { + + RTLD_LAZY :: 0x001 + RTLD_NOW :: 0x002 + RTLD_GLOBAL :: 0x100 + + _RTLD_LOCAL :: 0 + RTLD_LOCAL :: RTLD_Flags{} + } else { #panic("posix is unimplemented for the current target") } |