From 78690deaf2f383bc4311519f58cc7e63eb8ce463 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 Jan 2024 14:04:36 -0500 Subject: [PATCH] lib: Move some priviledge headers to file they are used. Signed-off-by: Donald Sharp --- lib/privs.c | 6 ++++++ lib/zebra.h | 5 ----- 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 + +#ifdef HAVE_LCAPS +#include +#include +#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 -#ifdef HAVE_LCAPS -#include -#include -#endif /* HAVE_LCAPS */ - /* network include group */ #include -- 2.39.5