From a3e032abd62dfc0ab83e1942fc2b24b199eb4258 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Jun 2013 22:13:40 +0200 Subject: [PATCH] enable /proc/ method for runtime_directory with cygwin --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';