From: Donald Sharp Date: Fri, 7 Sep 2018 16:55:03 +0000 (-0400) Subject: lib: Cleanup include of link.h X-Git-Tag: frr-7.1-dev~385^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7b90f00cceb71d0df28073b778d969ec09065199;p=mirror%2Ffrr.git lib: Cleanup include of link.h We need link.h for the HAVE_DLINFO_LINKMAP, so include it if we need it for that code path. Signed-off-by: Donald Sharp --- diff --git a/lib/memory_vty.c b/lib/memory_vty.c index 73a18529a2..5fd9c3b900 100644 --- a/lib/memory_vty.c +++ b/lib/memory_vty.c @@ -28,7 +28,9 @@ #include #endif #include +#ifdef HAVE_LINK_H #include +#endif #include "log.h" #include "memory.h"