librb: fix rb_path_to_self() dlinfo variant
This commit is contained in:
parent
a5ab106298
commit
a20190d5ea
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ rb_path_to_self(void)
|
|||
if (map == NULL)
|
||||
return NULL;
|
||||
realpath(map->l_name, path_buf);
|
||||
return path_buf;
|
||||
#elif defined(__APPLE__)
|
||||
char tmp_path[4096];
|
||||
uint32_t pathlen = 4096;
|
||||
|
|
Loading…
Reference in a new issue