mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
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:
parent
3f1581ae66
commit
a7cc50dab8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user