summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-01-04 20:04:36 +0100
committerDonald Sharp <sharpd@nvidia.com>2024-01-04 20:04:36 +0100
commit78690deaf2f383bc4311519f58cc7e63eb8ce463 (patch)
tree1eaf084ed3b81f7003d585999e9ce4241cac6e24
parent*: Remove Crypto openSSL define from zebra.h (diff)
downloadfrr-78690deaf2f383bc4311519f58cc7e63eb8ce463.tar.xz
frr-78690deaf2f383bc4311519f58cc7e63eb8ce463.zip
lib: Move some priviledge headers to file they are used.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-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 accd9895f..bb1b59e43 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 076f51608..a7db00b16 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>