diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-05 07:01:35 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-05 07:01:35 +0000 |
commit | 80e69562be86d149d753530a8a57c5babbb3f4c3 (patch) | |
tree | 021a608559e734833a7d23f03444fde66bf38076 /msg.c | |
parent | 05ba3fbffeaa3142e917ea69e9e39209e893581a (diff) | |
download | rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.tar.gz rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.tar.bz2 rsyslog-80e69562be86d149d753530a8a57c5babbb3f4c3.zip |
did some portability changes to make rsyslog compile on HP UX
Diffstat (limited to 'msg.c')
-rw-r--r-- | msg.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -31,7 +31,6 @@ #include <stdarg.h> #include <stdlib.h> #define SYSLOG_NAMES -#include <sys/syslog.h> #include <string.h> #include <assert.h> #include <ctype.h> @@ -64,17 +63,22 @@ static syslogCODE rs_prioritynames[] = { NULL, -1 } }; +#ifndef LOG_AUTHPRIV +# define LOG_AUTHPRIV LOG_AUTH +#endif static syslogCODE rs_facilitynames[] = { { "auth", LOG_AUTH }, { "authpriv", LOG_AUTHPRIV }, { "cron", LOG_CRON }, { "daemon", LOG_DAEMON }, - { "ftp", LOG_FTP }, +#if defined(LOG_FTP) + {"ftp", LOG_FTP}, +#endif { "kern", LOG_KERN }, { "lpr", LOG_LPR }, { "mail", LOG_MAIL }, - { "mark", INTERNAL_MARK }, /* INTERNAL */ + //{ "mark", INTERNAL_MARK }, /* INTERNAL */ { "news", LOG_NEWS }, { "security", LOG_AUTH }, /* DEPRECATED */ { "syslog", LOG_SYSLOG }, |