]> git.sesse.net Git - vlc/commitdiff
Fix --file-logging on windows (that was stupid...)
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 3 Feb 2012 18:08:48 +0000 (19:08 +0100)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 3 Feb 2012 18:08:48 +0000 (19:08 +0100)
src/libvlc.c

index 04aeb2e72eded1ce8d8af9c326c825a8a80789c5..c0e37f7a223d455ce6fa78adb08fe486f256986d 100644 (file)
@@ -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" );
     }