]> granicus.if.org Git - sudo/commitdiff
Fix compilation problem when --with-logging=file was specified. This
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Nov 1999 04:14:09 +0000 (04:14 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Nov 1999 04:14:09 +0000 (04:14 +0000)
means that syslog is now required to build sudo but that should not
be a problem.  If it is it can be fixed trivially with a configure
check for syslog() or syslog.h.

logging.h

index 10ccaf78bbe3e35815eeeb384f7073e2119d8d83..da4b02af3e09c873e8242c30d9d5f98476bbcb80 100644 (file)
--- a/logging.h
+++ b/logging.h
@@ -35,6 +35,7 @@
 #ifndef _LOGGING_H
 #define _LOGGING_H
 
+#include <syslog.h>
 #ifdef __STDC__
 # include <stdarg.h>
 #else
 #define SLOG_FILE              0x02
 #define SLOG_BOTH              0x03
 
-#if (LOGGING & SLOG_SYSLOG)
-# include <syslog.h>
-#endif
-
 /* Flags for log_error() */
 #define MSG_ONLY               0x01
 #define USE_ERRNO              0x02