improve executable search.
This commit is contained in:
7
C/load_dyld.c
Normal file → Executable file
7
C/load_dyld.c
Normal file → Executable file
@@ -62,8 +62,8 @@ mydlerror(void)
|
||||
* YAP_FindExecutable(argv[0]) should be called on yap initialization to
|
||||
* locate the executable of Yap
|
||||
*/
|
||||
void
|
||||
Yap_FindExecutable(char *name)
|
||||
char *
|
||||
Yap_FindExecutable(void)
|
||||
{
|
||||
char path[1024];
|
||||
uint32_t size = sizeof(path);
|
||||
@@ -93,7 +93,8 @@ mydlopen(char *path)
|
||||
/* NSLinkModule will cause the run to abort on any link error's */
|
||||
/* not very friendly but the error recovery functionality is limited */
|
||||
handle = NSLinkModule(ofile, path, TRUE);
|
||||
} return handle;
|
||||
}
|
||||
return handle;
|
||||
}
|
||||
|
||||
static void *
|
||||
|
Reference in New Issue
Block a user