summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/privs.c6
-rw-r--r--lib/zebra.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/privs.c b/lib/privs.c
index accd9895ff..bb1b59e439 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -6,6 +6,12 @@
* Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
*/
#include <zebra.h>
+
+#ifdef HAVE_LCAPS
+#include <sys/capability.h>
+#include <sys/prctl.h>
+#endif /* HAVE_LCAPS */
+
#include "log.h"
#include "privs.h"
#include "memory.h"
diff --git a/lib/zebra.h b/lib/zebra.h
index 076f51608c..a7db00b16e 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -63,11 +63,6 @@
/* misc include group */
#include <stdarg.h>
-#ifdef HAVE_LCAPS
-#include <sys/capability.h>
-#include <sys/prctl.h>
-#endif /* HAVE_LCAPS */
-
/* network include group */
#include <sys/socket.h>