diff options
| author | Peter Pentchev <roam@ringlet.net> | 2021-08-21 17:14:21 +0300 |
|---|---|---|
| committer | Peter Pentchev <roam@ringlet.net> | 2021-08-21 17:14:21 +0300 |
| commit | 6eb56a97d2be86d1ac983353a9be3c0aa3df9a8e (patch) | |
| tree | 0d5b8ed59a17bc6aaa07e2d417a70eb8e79cefa4 /src | |
| parent | 7187784936edc640d547ad497ef9b644a2483a2e (diff) | |
Find the executable path on the GNU Hurd, too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |
