[vlc-devel] [PATCH] libvlc: daemon() is deprecated on recent OS X

Sean McGovern gseanmcg at gmail.com
Wed Nov 5 20:32:07 CET 2014


---
 src/libvlc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/libvlc.c b/src/libvlc.c
index 946ce2e..aaadfd1 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -196,6 +196,11 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         return VLC_ENOMOD;
     }
 
+/* Darwin does have daemon(), but it has been deprecated since OS X 10.5 */
+#ifdef HAVE_DARWIN
+    #undef HAVE_DAEMON
+#endif
+
 #ifdef HAVE_DAEMON
     /* Check for daemon mode */
     if( var_InheritBool( p_libvlc, "daemon" ) )
-- 
1.9.3 (Apple Git-50)




More information about the vlc-devel mailing list