enable /proc/ method for runtime_directory with cygwin
This commit is contained in:
parent
6d125e6c36
commit
a3e032abd6
|
@ -36,7 +36,7 @@ void run_unit_tests();
|
||||||
String runtime_directory()
|
String runtime_directory()
|
||||||
{
|
{
|
||||||
char buffer[2048];
|
char buffer[2048];
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || defined(__CYGWIN__)
|
||||||
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';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user