From 13efe02e2dacb0cd41144ca1bb1ab32065f2d619 Mon Sep 17 00:00:00 2001 From: Andreas Boeckler Date: Thu, 27 Dec 2018 13:58:07 +0100 Subject: [PATCH] activated systemd-foreground-option on OS X for launchd --- minidlna.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minidlna.c b/minidlna.c index 69780eb..b2769ae 100644 --- a/minidlna.c +++ b/minidlna.c @@ -951,7 +951,7 @@ init(int argc, char **argv) else DPRINTF(E_FATAL, L_GENERAL, "Option -%c takes one argument.\n", argv[i][1]); break; -#ifdef __linux__ +#if defined(__linux__) || defined(__APPLE__) case 'S': SETFLAG(SYSTEMD_MASK); break; @@ -987,8 +987,8 @@ init(int argc, char **argv) "\t-r forces a rescan\n" "\t-R forces a rebuild\n" "\t-L do not create playlists\n" -#ifdef __linux__ - "\t-S changes behaviour for systemd\n" +#if defined(__linux__) || defined(__APPLE__) + "\t-S changes behaviour for systemd/launchd\n" #endif "\t-V print the version number\n", argv[0], pidfilename);