Merge branch 'roam-hurd-exec-path' of http://github.com/ppentchev/kakoune into HEAD

This commit is contained in:
Maxime Coste 2021-08-22 22:41:27 +10:00
commit c1e8f57bd6

View File

@ -597,7 +597,7 @@ FsStatus get_fs_status(StringView filename)
String get_kak_binary_path() String get_kak_binary_path()
{ {
char buffer[2048]; 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); ssize_t res = readlink("/proc/self/exe", buffer, 2048);
kak_assert(res != -1); kak_assert(res != -1);
buffer[res] = '\0'; buffer[res] = '\0';