[vlc-commits] Fix --file-logging on windows (that was stupid...)
Antoine Cellerier
git at videolan.org
Fri Feb 3 19:09:30 CET 2012
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Feb 3 19:08:48 2012 +0100| [ad3507aa9d470edeb446c08b654c8d68631aa105] | committer: Antoine Cellerier
Fix --file-logging on windows (that was stupid...)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad3507aa9d470edeb446c08b654c8d68631aa105
---
src/libvlc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 04aeb2e..c0e37f7 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -662,8 +662,11 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
# endif
#endif
- if( var_InheritBool( p_libvlc, "file-logging" ) &&
- !var_InheritBool( p_libvlc, "syslog" ) )
+ if( var_InheritBool( p_libvlc, "file-logging" )
+#ifdef HAVE_SYSLOG_H
+ && !var_InheritBool( p_libvlc, "syslog" )
+#endif
+ )
{
intf_Create( p_libvlc, "logger,none" );
}
More information about the vlc-commits
mailing list