aboutsummaryrefslogtreecommitdiff
path: root/src/pies.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-03-19 08:59:02 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-03-19 08:59:02 +0200
commit238924457849e53eae3771bc6240883b37e1ff34 (patch)
treed3be17fde8c3f8e919b8d7e5ea72f34805926386 /src/pies.c
parentc95307bfe28691d00f8ad394dec1966f0bf14e32 (diff)
downloadpies-238924457849e53eae3771bc6240883b37e1ff34.tar.gz
pies-238924457849e53eae3771bc6240883b37e1ff34.tar.bz2
Fix some compilation issues on Solaris
* configure.ac: Check for libnsl * src/pies.c (string_to_syslog_facility): LOG_AUTHPRIV and LOG_FTP may be undefined. * src/piesctl.c (EX_NOTFOUND): Rename to EX_PIES_NOTFOUND. (com_list): Use default_cond. * src/sysvinit.c (console_stty): Make sure CBAUDEX is defined. * src/utmp.c (fill_utmp): Declare locals right before using them.
Diffstat (limited to 'src/pies.c')
-rw-r--r--src/pies.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pies.c b/src/pies.c
index 695c1b0..3fb181c 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -636,10 +636,14 @@ string_to_syslog_facility (const char *key, int *pres)
{
static struct tokendef tokdef_fac[] = {
{"auth", LOG_AUTH},
+#ifdef LOG_AUTHPRIV
{"authpriv", LOG_AUTHPRIV},
+#endif
{"cron", LOG_CRON},
{"daemon", LOG_DAEMON},
+#ifdef LOG_FTP
{"ftp", LOG_FTP},
+#endif
{"kern", LOG_KERN},
{"lpr", LOG_LPR},
{"mail", LOG_MAIL},

Return to:

Send suggestions and report system problems to the System administrator.