Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6e700dab
Commit
6e700dab
authored
Mar 06, 2023
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CommandLine: hard-code `daemon=false` if ENABLE_DAEMON is not set
parent
35eaed72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
CommandLine.cxx
src/CommandLine.cxx
+4
-0
CommandLine.hxx
src/CommandLine.hxx
+7
-0
No files found.
src/CommandLine.cxx
View file @
6e700dab
...
...
@@ -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
...
...
src/CommandLine.hxx
View file @
6e700dab
...
...
@@ -20,11 +20,18 @@
#ifndef MPD_COMMAND_LINE_HXX
#define MPD_COMMAND_LINE_HXX
#include "config.h" // for ENABLE_DAEMON
struct
ConfigData
;
struct
CommandLineOptions
{
bool
kill
=
false
;
#ifdef ENABLE_DAEMON
bool
daemon
=
true
;
#else
static
constexpr
bool
daemon
=
false
;
#endif
#ifdef __linux__
bool
systemd
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment