Mercurial > hg > mlmmj
changeset 22:572235c724c0
#ifdef USE_SYSLOG becomes #ifdef HAVE_SYSLOG{,_H} now configure checks for it
author | mmj |
---|---|
date | Fri, 23 Apr 2004 00:17:50 +1000 |
parents | bbc5ef57652e |
children | 9fce289fcbd0 |
files | src/log_error.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/log_error.c Thu Apr 22 23:58:44 2004 +1000 +++ b/src/log_error.c Fri Apr 23 00:17:50 2004 +1000 @@ -3,7 +3,7 @@ #include <stdio.h> #include <string.h> #include <errno.h> -#ifdef USE_SYSLOG +#ifdef HAVE_SYSLOG_H #include <syslog.h> #endif @@ -24,7 +24,7 @@ { if (!log_name) log_name = "mlmmj-UNKNOWN"; -#ifdef USE_SYSLOG +#ifdef HAVE_SYSLOG static int syslog_is_open = 0; if(!syslog_is_open) { openlog(log_name, LOG_PID|LOG_CONS, LOG_MAIL);