fix CYGWIN compilation
This commit is contained in:
2
C/load_dl.c
Normal file → Executable file
2
C/load_dl.c
Normal file → Executable file
@@ -46,8 +46,10 @@ Yap_LoadForeignFile(char *file, int flags)
|
||||
dlflag = RTLD_LAZY;
|
||||
if (flags & GLOBAL_LOADING)
|
||||
dlflag |= RTLD_GLOBAL;
|
||||
#ifndef __CYGWIN__
|
||||
else
|
||||
dlflag |= RTLD_LOCAL;
|
||||
#endif
|
||||
|
||||
out = (void *)dlopen(file,dlflag);
|
||||
if (!out) {
|
||||
|
Reference in New Issue
Block a user