]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Move some priviledge headers to file they are used.
authorDonald Sharp <sharpd@nvidia.com>
Thu, 4 Jan 2024 19:04:36 +0000 (14:04 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 4 Jan 2024 19:04:36 +0000 (14:04 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/privs.c
lib/zebra.h

index accd9895ffec5fea65a93745429836a05639f94c..bb1b59e43918adc2a43a9d66a02644c5ff992889 100644 (file)
@@ -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"
index 076f51608c73218832c504929c74a0ec0e9b13dd..a7db00b16e5c97422c7d049c179b409f6f5f0f46 100644 (file)
 /* 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>