[vlc-devel] [PATCH] libvlc: daemon() is deprecated on recent OS X
Rémi Denis-Courmont
remi at remlab.net
Wed Nov 5 20:37:59 CET 2014
Le mercredi 05 novembre 2014, 14:32:07 Sean McGovern a écrit :
> ---
> 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
> +
Seriously no. If something is wrong with daemon() (and many things are wrong
with it IMHO), then fix it.
> #ifdef HAVE_DAEMON
> /* Check for daemon mode */
> if( var_InheritBool( p_libvlc, "daemon" ) )
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list