CommandLine: hard-code daemon=false if ENABLE_DAEMON is not set

This commit is contained in:
Max Kellermann
2023-03-06 12:57:42 +01:00
parent 35eaed7206
commit 6e700dab69
2 changed files with 11 additions and 0 deletions

View File

@@ -352,12 +352,16 @@ ParseCommandLine(int argc, char **argv, CommandLineOptions &options,
break;
case OPTION_NO_DAEMON:
#ifdef ENABLE_DAEMON
options.daemon = false;
#endif
break;
#ifdef __linux__
case OPTION_SYSTEMD:
#ifdef ENABLE_DAEMON
options.daemon = false;
#endif
options.systemd = true;
break;
#endif