From 06894f02f1cd0b87b3aaabf5648e8313fecd6192 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 3 Sep 2021 18:35:53 +0200 Subject: ipcpd: Don't include prctl.h on non-linux systems prctl.h is linux only. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/ipcp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ipcpd') diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 3e1da8c4..e3e4221a 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -53,11 +53,13 @@ #include #include #include -#include #include -#if defined(__linux__) && !defined(DISABLE_CORE_LOCK) +#if defined(__linux__) +#include +#ifndef DISABLE_CORE_LOCK #include #endif +#endif char * info[LAYER_NAME_SIZE + 1] = { "_state", -- cgit v1.2.3