1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

dl: add more dlopen flags (#17184)

This commit is contained in:
MatejMagat305
2023-02-01 17:32:35 +01:00
committed by GitHub
parent ed58b95a9d
commit e70848a98b
2 changed files with 16 additions and 6 deletions

View File

@ -6,9 +6,14 @@ $if linux {
#flag -ldl
}
pub const rtld_now = C.RTLD_NOW
pub const rtld_lazy = C.RTLD_LAZY
pub const (
rtld_now = C.RTLD_NOW
rtld_lazy = C.RTLD_LAZY
rtld_global = C.RTLD_GLOBAL
rtld_local = C.RTLD_LOCAL
rtld_nodelete = C.RTLD_NODELETE
rtld_noload = C.RTLD_NOLOAD
)
fn C.dlopen(filename &char, flags int) voidptr