[vlc-commits] Fix --file-logging on windows (that was stupid...)

Antoine Cellerier git at videolan.org
Sat Feb 4 15:18:59 CET 2012


vlc/vlc-2.0 | branch: master | Antoine Cellerier <dionoea at videolan.org> | Fri Feb  3 19:08:48 2012 +0100| [5547aa245cb08beb60b5a1b3805709443fafed64] | committer: Jean-Baptiste Kempf

Fix --file-logging on windows (that was stupid...)
(cherry picked from commit ad3507aa9d470edeb446c08b654c8d68631aa105)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=5547aa245cb08beb60b5a1b3805709443fafed64
---

 src/libvlc.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 4b10dec..1a3931b 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -665,8 +665,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