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:
@@ -35,6 +35,7 @@
|
|||||||
#ifndef _LOGGING_H
|
#ifndef _LOGGING_H
|
||||||
#define _LOGGING_H
|
#define _LOGGING_H
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
#else
|
#else
|
||||||
@@ -46,10 +47,6 @@
|
|||||||
#define SLOG_FILE 0x02
|
#define SLOG_FILE 0x02
|
||||||
#define SLOG_BOTH 0x03
|
#define SLOG_BOTH 0x03
|
||||||
|
|
||||||
#if (LOGGING & SLOG_SYSLOG)
|
|
||||||
# include <syslog.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Flags for log_error() */
|
/* Flags for log_error() */
|
||||||
#define MSG_ONLY 0x01
|
#define MSG_ONLY 0x01
|
||||||
#define USE_ERRNO 0x02
|
#define USE_ERRNO 0x02
|
||||||
|
Reference in New Issue
Block a user