ifdef out foreground check on windows
@@ -513,7 +513,12 @@ void InitMayaqua(bool memcheck, bool debug, int argc, char **argv)
// Fail this for some reason when this is called this in .NET mode
setbuf(stdout, NULL);
}
+
+#ifdef OS_UNIX
g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0);
+#else
+ g_foreground = false;
+#endif // OS_UNIX
// Acquisition whether NT
#ifdef OS_WIN32
