mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 22:29:16 +02:00
RTLD_SELF is osx-specific
This commit is contained in:
parent
0856230839
commit
938f527c79
1 changed files with 7 additions and 1 deletions
8
gc.c
8
gc.c
|
@ -8,6 +8,12 @@
|
|||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define SEXP_RTLD_DEFAULT RTLD_SELF
|
||||
#else
|
||||
#define SEXP_RTLD_DEFAULT RTLD_DEFAULT
|
||||
#endif
|
||||
|
||||
#define SEXP_BANNER(x) ("**************** GC "x"\n")
|
||||
|
||||
#define SEXP_MINIMUM_OBJECT_SIZE (sexp_heap_align(1))
|
||||
|
@ -546,7 +552,7 @@ void sexp_offset_heap_pointers (sexp_heap heap, sexp_heap from_heap, sexp* types
|
|||
sexp_dl_handle(sexp_opcode_dl(p)) = dlopen(sexp_string_data(sexp_dl_file(sexp_opcode_dl(p))), RTLD_LAZY);
|
||||
sexp_opcode_func(p) = dlsym(sexp_dl_handle(sexp_opcode_dl(p)), sexp_string_data(name));
|
||||
} else {
|
||||
sexp_opcode_func(p) = dlsym(RTLD_SELF, sexp_string_data(name));
|
||||
sexp_opcode_func(p) = dlsym(SEXP_RTLD_DEFAULT, sexp_string_data(name));
|
||||
}
|
||||
}
|
||||
t = types[sexp_pointer_tag(p)];
|
||||
|
|
Loading…
Add table
Reference in a new issue