Skip to content

Commit

Permalink
Win32 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
velnias75 committed Feb 27, 2015
1 parent 891150b commit 767cc49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,17 @@ int main(int argc, const char **argv) {

poptFreeContext(pctx);

#ifndef _WIN32
if(inetd) {
NetMauMau::Common::Logger::setSilentMask(0xFF);
NetMauMau::Common::Logger::writeSyslog(true);
} else {
NetMauMau::Common::Logger::writeSyslog(false);
}
#else
// on Win32 we don't write to syslog, but we flush std::cerr after every log
NetMauMau::Common::Logger::writeSyslog(true);
#endif

#ifndef HAVE_ARC4RANDOM_UNIFORM
#if HAVE_INITSTATE
Expand Down

0 comments on commit 767cc49

Please sign in to comment.