Merge branch 'master' of git://factorcode.org/git/factor

db4
Slava Pestov 2009-05-04 07:19:40 -05:00
commit a9782a2e64
1 changed files with 2 additions and 2 deletions

View File

@ -3,13 +3,13 @@
namespace factor namespace factor
{ {
extern int main(); extern "C" int main();
const char *vm_executable_path(void) const char *vm_executable_path(void)
{ {
static Dl_info info = {0}; static Dl_info info = {0};
if (!info.dli_fname) if (!info.dli_fname)
dladdr(main, &info); dladdr((void *)main, &info);
return info.dli_fname; return info.dli_fname;
} }