diff --git a/src/suricata-common.h b/src/suricata-common.h index a002350258..bd1c4b743e 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -67,7 +67,7 @@ #ifdef HAVE_SYSLOG_H #include -#else +#elif OS_WIN32 #include "win32-syslog.h" #endif /* HAVE_SYSLOG_H */ diff --git a/src/util-debug.h b/src/util-debug.h index b3fe0021ce..e41886ecc1 100644 --- a/src/util-debug.h +++ b/src/util-debug.h @@ -21,22 +21,17 @@ * \author Anoop Saldanha */ +#ifndef __UTIL_DEBUG_H__ +#define __UTIL_DEBUG_H__ + #include -#include "threads.h" #include +#include +#include "threads.h" #include "util-enum.h" #include "util-error.h" -#include "pcre.h" #include "util-debug-filters.h" -#if defined __OpenBSD__ -//#include -#else -#include "syslog.h" -#endif - -#ifndef __UTIL_DEBUG_H__ -#define __UTIL_DEBUG_H__ /** * \brief ENV vars that can be used to set the properties for the logging module