Changes to test in configure if capabilities are enabled on a system.
[samba.git] / source3 / lib / debug.c
index 0418098fb21cf1e93972f82b631d340fff654a9a..6b7b9341a3c1e8c305bfd2bc925d24c8de775e41 100644 (file)
@@ -108,7 +108,9 @@ int     DEBUGLEVEL = 1;
 
 static BOOL    stdout_logging = False;
 static int     debug_count    = 0;
+#ifdef WITH_SYSLOG
 static int     syslog_level   = 0;
+#endif
 static pstring format_bufr    = { '\0' };
 static int     format_pos     = 0;
 
@@ -513,8 +515,10 @@ BOOL dbghdr( int level, char *file, char *func, int line )
     return( True );
     }
 
+#ifdef WITH_SYSLOG
   /* Set syslog_level. */
   syslog_level = level;
+#endif
 
   /* Don't print a header if we're logging to stdout. */
   if( stdout_logging )