diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-03-19 08:59:02 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-03-19 08:59:02 +0200 |
commit | 238924457849e53eae3771bc6240883b37e1ff34 (patch) | |
tree | d3be17fde8c3f8e919b8d7e5ea72f34805926386 /src/pies.c | |
parent | c95307bfe28691d00f8ad394dec1966f0bf14e32 (diff) | |
download | pies-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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}, |