summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2021-09-03 18:35:53 +0200
committerSander Vrijders <sander@ouroboros.rocks>2021-09-05 17:03:45 +0200
commit06894f02f1cd0b87b3aaabf5648e8313fecd6192 (patch)
treeb7c48bc96396870a86737a3ab94746af273780b2 /src/ipcpd/ipcp.c
parentb49dd2e18094697aba221a8f02cde91fe0e71955 (diff)
downloadouroboros-06894f02f1cd0b87b3aaabf5648e8313fecd6192.tar.gz
ouroboros-06894f02f1cd0b87b3aaabf5648e8313fecd6192.zip
ipcpd: Don't include prctl.h on non-linux systems
prctl.h is linux only. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c6
1 files changed, 4 insertions, 2 deletions
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 <signal.h>
#include <string.h>
#include <sys/socket.h>
-#include <sys/prctl.h>
#include <stdlib.h>
-#if defined(__linux__) && !defined(DISABLE_CORE_LOCK)
+#if defined(__linux__)
+#include <sys/prctl.h>
+#ifndef DISABLE_CORE_LOCK
#include <unistd.h>
#endif
+#endif
char * info[LAYER_NAME_SIZE + 1] = {
"_state",