From: Harlan Stenn Date: Fri, 11 Oct 2002 07:27:35 +0000 (-0400) Subject: Portability fixes. X-Git-Tag: NTP_4_1_73~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7afae05e2e6883eadc5da52a648f6a973acc5a35;p=thirdparty%2Fntp.git Portability fixes. bk: 3da67d67dWwv_nLmvgzxZv7Y0tC26w --- diff --git a/sntp/unix.c b/sntp/unix.c index 70788c7fcd..2138186122 100644 --- a/sntp/unix.c +++ b/sntp/unix.c @@ -76,10 +76,18 @@ point in clearing the lock under Unix, but do so anyway. */ -void log_message (const char *message) { - -/* Log a message, crudely. This is used in only one place, but could -be used more widely. */ - - syslog(LOG_DAEMON|LOG_WARNING,"%s",message); +/* + * Log a message, crudely. + * This is used in only one place, but could be used more widely. + */ + +void +log_message (const char *message) +{ + + syslog( +#ifdef LOG_DAEMON + LOG_DAEMON | +#endif + LOG_WARNING, "%s", message); }