From 7198c700bc1881c115062d9a4019b960ab0e0b57 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 May 2022 17:15:49 +0100 Subject: [PATCH] MINOR: tools: add get_exec_path implementation for solaris based systems. We can use getexecname() which fetches AT_SUN_EXECNAME from the auxiliary vectors. --- src/tools.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools.c b/src/tools.c index ed3c3a667..c6bc81be9 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4821,6 +4821,8 @@ const char *get_exec_path() break; } } +#elif defined(__sun) + ret = getexecname(); #endif return ret; } -- 2.47.3