Commit d947ac0ec4cf53f9c8201bbe900fcd1ed65bcd3c

Thomas de Grivel 2023-11-03T15:52:50

fix build on MacOS X

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/cfn.c b/libc3/cfn.c
index 8a3d178..d81a8c2 100644
--- a/libc3/cfn.c
+++ b/libc3/cfn.c
@@ -166,7 +166,7 @@ s_cfn * cfn_init (s_cfn *cfn, const s_sym *name, s_list *arg_types,
 s_cfn * cfn_link (s_cfn *cfn)
 {
   assert(cfn);
-  if (! (cfn->ptr.p = dlsym(NULL, cfn->name->str.ptr.ps8))) {
+  if (! (cfn->ptr.p = dlsym(RTLD_DEFAULT, cfn->name->str.ptr.ps8))) {
     warnx("cfn_link: %s: %s", cfn->name->str.ptr.ps8, dlerror());
     return NULL;
   }