[vlc-devel] [PATCH] vlc: use HAVE_DAEMON to guard daemon specific code

Marvin Scholz epirat07 at gmail.com
Wed Mar 4 15:08:53 CET 2020


---
 src/interface/interface.c | 2 +-
 src/libvlc-module.c       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index 96fa792921..e502c2a1b5 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -254,7 +254,7 @@ int libvlc_InternalAddIntf(libvlc_int_t *libvlc, const char *name)
         char *intf = var_InheritString(libvlc, "intf");
         if (intf == NULL) /* "intf" has not been set */
         {
-#if !defined(_WIN32) && !defined(__OS2__)
+#ifdef HAVE_DAEMON
             if (!var_InheritBool(libvlc, "daemon"))
 #endif
                 msg_Info(libvlc, _("Running vlc with the default interface. "
diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 1da7fa6e79..0f0232fa60 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -2271,7 +2271,7 @@ vlc_module_begin ()
         change_short('v')
         change_volatile ()
     add_obsolete_string( "verbose-objects" ) /* since 2.1.0 */
-#if !defined(_WIN32) && !defined(__OS2__)
+#ifdef HAVE_DAEMON
     add_bool( "daemon", 0, DAEMON_TEXT, DAEMON_LONGTEXT, true )
         change_short('d')
 
-- 
2.21.1 (Apple Git-122.3)



More information about the vlc-devel mailing list