|
@@ -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
|
|
// Fail this for some reason when this is called this in .NET mode
|
|
|
setbuf(stdout, NULL);
|
|
setbuf(stdout, NULL);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+#ifdef OS_UNIX
|
|
|
g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0);
|
|
g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0);
|
|
|
|
|
+#else
|
|
|
|
|
+ g_foreground = false;
|
|
|
|
|
+#endif // OS_UNIX
|
|
|
|
|
|
|
|
// Acquisition whether NT
|
|
// Acquisition whether NT
|
|
|
#ifdef OS_WIN32
|
|
#ifdef OS_WIN32
|