From 1da0bac8c8aa93e96dfff0b2d4a821f7b005e3f4 Mon Sep 17 00:00:00 2001 From: didrix Date: Sun, 26 Oct 2014 20:16:04 +0100 Subject: [PATCH 1/2] Added missing header for 'KERN_PROC_PID' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit is needed for ‘KERN_PROC_PID’ on (at least) OpenBSD. --- core/logging.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/logging.c b/core/logging.c index 8c1d05fa..d95ca9f0 100644 --- a/core/logging.c +++ b/core/logging.c @@ -3,6 +3,7 @@ #endif #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) #include +#include #include #elif defined(__sun__) /* Terrible Hack !!! */ From 9b67cd4588e4419ae6f075951bd0461769d5ebf1 Mon Sep 17 00:00:00 2001 From: didrix Date: Sun, 26 Oct 2014 21:35:51 +0100 Subject: [PATCH 2/2] Remove duplicate include. Remove duplicate include of . --- core/logging.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/logging.c b/core/logging.c index d95ca9f0..7fe81bc2 100644 --- a/core/logging.c +++ b/core/logging.c @@ -14,10 +14,6 @@ #define _FILE_OFFSET_BITS 64 #endif -#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) -#include -#endif - #ifdef __DragonFly__ #include #endif