mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Travis osx support (#155)
* fixed OS X compatibility * adding OS X travis test * ignoring autogenerated files * adding OS X travis test * fixed os x building * fixed os x building * reduced ignore file * v4l osx issue fixed * improved qt5 detection * disabled cleaning of child threads on os x for the time being * fixed avahi on OS X
This commit is contained in:
committed by
redPanther
parent
84c041a6fb
commit
05812f107b
@@ -93,17 +93,18 @@ Logger::Logger ( std::string name, LogLevel minLevel ):
|
||||
_loggerId(loggerId++)
|
||||
{
|
||||
#ifdef __GLIBC__
|
||||
_appname = std::string(program_invocation_short_name);
|
||||
const char* _appname_char = program_invocation_short_name;
|
||||
#else
|
||||
_appname = std::string(getprogname());
|
||||
const char* _appname_char = getprogname();
|
||||
#endif
|
||||
_appname = std::string(_appname_char);
|
||||
std::transform(_appname.begin(), _appname.end(),_appname.begin(), ::toupper);
|
||||
|
||||
loggerCount++;
|
||||
|
||||
if (_syslogEnabled && loggerCount == 1 )
|
||||
{
|
||||
openlog (program_invocation_short_name, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL0);
|
||||
openlog (_appname_char, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user