enable /proc/ method for runtime_directory with cygwin

This commit is contained in:
Maxime Coste 2013-06-18 22:13:40 +02:00
parent 6d125e6c36
commit a3e032abd6

View File

@ -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';