util/syslog: guard LOG_FTP for Solaris

Only expose the ftp facility when the platform syslog headers define LOG_FTP.
pull/15601/head
Martin Rehak 5 months ago committed by Victor Julien
parent 823322cb1c
commit 1faa2921c1

@ -28,12 +28,15 @@
#include "util-syslog.h"
/* holds the string-enum mapping for the syslog facility in SCLogOPIfaceCtx */
// clang-format off
SCEnumCharMap sc_syslog_facility_map[] = {
{ "auth", LOG_AUTH },
{ "authpriv", LOG_AUTHPRIV },
{ "cron", LOG_CRON },
{ "daemon", LOG_DAEMON },
#if defined(LOG_FTP)
{ "ftp", LOG_FTP },
#endif
{ "kern", LOG_KERN },
{ "lpr", LOG_LPR },
{ "mail", LOG_MAIL },
@ -52,6 +55,7 @@ SCEnumCharMap sc_syslog_facility_map[] = {
{ "local7", LOG_LOCAL7 },
{ NULL, -1 }
};
// clang-format on
/** \brief returns the syslog facility enum map */
SCEnumCharMap *SCSyslogGetFacilityMap(void)

Loading…
Cancel
Save