logging: include <syslog.h>

Move the inclusion of <syslog.h> from sysincl.h to logging.c to avoid
accidentally using the LOG_* constants from the header.
This commit is contained in:
Miroslav Lichvar 2019-10-23 17:23:35 +02:00
parent 96771d6857
commit 903fa247f8
2 changed files with 4 additions and 4 deletions

View file

@ -29,6 +29,8 @@
#include "sysincl.h" #include "sysincl.h"
#include <syslog.h>
#include "conf.h" #include "conf.h"
#include "logging.h" #include "logging.h"
#include "util.h" #include "util.h"

View file

@ -21,9 +21,8 @@
======================================================================= =======================================================================
This file includes all system header files that the software This file includes most system header files that the software
requires. This allows us to isolate system dependencies to this file requires to better isolate system dependencies.
alone.
*/ */
#ifndef GOT_SYSINCL_H #ifndef GOT_SYSINCL_H
@ -54,7 +53,6 @@
#include <sys/un.h> #include <sys/un.h>
#include <sys/shm.h> #include <sys/shm.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <syslog.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>