From 6eb56a97d2be86d1ac983353a9be3c0aa3df9a8e Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Sat, 21 Aug 2021 17:14:21 +0300 Subject: [PATCH] Find the executable path on the GNU Hurd, too. --- src/file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cc b/src/file.cc index cca59393..d80da197 100644 --- a/src/file.cc +++ b/src/file.cc @@ -597,7 +597,7 @@ FsStatus get_fs_status(StringView filename) String get_kak_binary_path() { char buffer[2048]; -#if defined(__linux__) or defined(__CYGWIN__) +#if defined(__linux__) or defined(__CYGWIN__) or defined(__gnu_hurd__) ssize_t res = readlink("/proc/self/exe", buffer, 2048); kak_assert(res != -1); buffer[res] = '\0';