Avoid duplicate exe_path definition on recent FreeBSD

This commit is contained in:
Ed Maste 2019-11-18 08:49:55 -05:00
parent 2b8115b10b
commit b462cdff05
1 changed files with 0 additions and 1 deletions

View File

@ -198,7 +198,6 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
// to the file.
char exe_path[PATH_MAX];
#if __FreeBSD_version >= 1300057
char exe_path[PATH_MAX];
if (elf_aux_info(AT_EXECPATH, exe_path, sizeof(exe_path)) == 0)
return exe_path;
#else