Fix compilation problem when --with-logging=file was specified. This

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.
This commit is contained in:
Todd C. Miller
1999-11-01 04:14:09 +00:00
parent 3f1581ae66
commit a7cc50dab8

View File

@@ -35,6 +35,7 @@
#ifndef _LOGGING_H
#define _LOGGING_H
#include <syslog.h>
#ifdef __STDC__
# include <stdarg.h>
#else
@@ -46,10 +47,6 @@
#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