diff --git a/src/main.cc b/src/main.cc index 980438a5..715489cf 100644 --- a/src/main.cc +++ b/src/main.cc @@ -36,7 +36,7 @@ void run_unit_tests(); String runtime_directory() { char buffer[2048]; -#if defined(__linux__) +#if defined(__linux__) || defined(__CYGWIN__) ssize_t res = readlink("/proc/self/exe", buffer, 2048); kak_assert(res != -1); buffer[res] = '\0';