]> git.sesse.net Git - vlc/commitdiff
Don't check syslog value if we don't have syslog.h
authorClément Stenac <zorglub@videolan.org>
Sat, 28 Jan 2006 22:31:23 +0000 (22:31 +0000)
committerClément Stenac <zorglub@videolan.org>
Sat, 28 Jan 2006 22:31:23 +0000 (22:31 +0000)
src/libvlc.c

index b09edba64d3c77f395271a88c2e53ef4c3847930..0143c898f5a3596e5467d1235a6498a5bc6f6415 100644 (file)
@@ -780,11 +780,13 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
     {
         VLC_AddIntf( 0, "logger", VLC_FALSE, VLC_FALSE );
     }
+#ifdef HAVE_SYSLOG_H
     if( config_GetInt( p_vlc, "syslog" ) == 1 )
     {
         char *psz_logmode = "logmode=syslog";
         AddIntfInternal( 0, "logger", VLC_FALSE, VLC_FALSE, 1, &psz_logmode );
     }
+#endif
 
     if( config_GetInt( p_vlc, "show-intf" ) == 1 )
     {