Restore process name retrieval on cygwin.

This commit is contained in:
Bartosz Taudul 2017-11-10 19:46:31 +01:00
parent 96ce90c6ed
commit fb46b3cf24

View File

@ -66,7 +66,7 @@ static const char* GetProcessName()
auto buf = getprogname(); auto buf = getprogname();
if( buf ) return buf; if( buf ) return buf;
# endif # endif
#elif defined _GNU_SOURCE #elif defined _GNU_SOURCE || defined __CYGWIN__
return program_invocation_short_name; return program_invocation_short_name;
#endif #endif
return "unknown"; return "unknown";