mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
fix build on osx (#695)
This commit is contained in:
parent
7dfb9f1967
commit
9f564f8d89
@ -46,7 +46,11 @@ Logger::Logger ( std::string name, LogLevel minLevel ):
|
||||
_syslogEnabled(true),
|
||||
_loggerId(loggerId++)
|
||||
{
|
||||
#ifdef GLIBC
|
||||
_appname = std::string(program_invocation_short_name);
|
||||
#else
|
||||
_appname = std::string(getprogname());
|
||||
#endif
|
||||
std::transform(_appname.begin(), _appname.end(),_appname.begin(), ::toupper);
|
||||
|
||||
loggerCount++;
|
||||
|
Loading…
Reference in New Issue
Block a user