commit | 7198c700bc1881c115062d9a4019b960ab0e0b57 | [log] [tgz] |
---|---|---|
author | David Carlier <devnexen@gmail.com> | Sat May 14 17:15:49 2022 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 17 11:44:21 2022 +0200 |
tree | 2c64c6f11cece8cf27a8f6857f227731ce232d20 | |
parent | 135c1ec139d169a9fa432b8d85c6c76c1e57b0cc [diff] |
MINOR: tools: add get_exec_path implementation for solaris based systems. We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary vectors.
diff --git a/src/tools.c b/src/tools.c index ed3c3a6..c6bc81b 100644 --- a/src/tools.c +++ b/src/tools.c
@@ -4821,6 +4821,8 @@ break; } } +#elif defined(__sun) + ret = getexecname(); #endif return ret; }