Revision 5d6dc930 sysdep/unix/log.c

View differences:

sysdep/unix/log.c
56 56
#endif
57 57

  
58 58

  
59
#ifdef HAVE_SYSLOG
59
#ifdef HAVE_SYSLOG_H
60 60
#include <sys/syslog.h>
61 61

  
62 62
static int syslog_priorities[] = {
......
127 127
	  fputc('\n', l->fh);
128 128
	  fflush(l->fh);
129 129
	}
130
#ifdef HAVE_SYSLOG
130
#ifdef HAVE_SYSLOG_H
131 131
      else
132 132
	syslog(syslog_priorities[class], "%s", buf->start);
133 133
#endif
......
262 262
  init_list(&init_log_list);
263 263
  *syslog_name = NULL;
264 264

  
265
#ifdef HAVE_SYSLOG
265
#ifdef HAVE_SYSLOG_H
266 266
  if (!debug)
267 267
    {
268 268
      static struct log_config lc_syslog = { .mask = ~0 };
......
287 287

  
288 288
  current_log_list = l;
289 289

  
290
#ifdef HAVE_SYSLOG
290
#ifdef HAVE_SYSLOG_H
291 291
  if (current_syslog_name && new_syslog_name &&
292 292
      !strcmp(current_syslog_name, new_syslog_name))
293 293
    return;

Also available in: Unified diff