]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Scan lib/resolver.c only when c-ares is installed 9415/head
authorJohn W. O'Brien <john@saltant.com>
Sun, 15 Aug 2021 16:46:30 +0000 (12:46 -0400)
committermergify-bot <noreply@mergify.io>
Tue, 17 Aug 2021 08:29:32 +0000 (08:29 +0000)
Scan lib/resolver.c only when c-ares is installed

Signed-off-by: John W. O'Brien <john@saltant.com>
(cherry picked from commit 433d9af2a6463d975cd746b1013f6cbe675fc2ab)

lib/subdir.am

index 75f3d91b95c51e1b6881a18441a29bc379c7bfeb..05910349ee6137433001458c2f8d8af1d00a161a 100644 (file)
@@ -144,7 +144,6 @@ vtysh_scan += \
        lib/log_vty.c \
        lib/nexthop_group.c \
        lib/plist.c \
-       lib/resolver.c \
        lib/routemap.c \
        lib/routemap_cli.c \
        lib/spf_backoff.c \
@@ -333,6 +332,7 @@ lib_libfrrsnmp_la_SOURCES = \
 if CARES
 lib_LTLIBRARIES += lib/libfrrcares.la
 pkginclude_HEADERS += lib/resolver.h
+vtysh_scan += lib/resolver.c
 endif
 
 lib_libfrrcares_la_CFLAGS = $(AM_CFLAGS) $(CARES_CFLAGS)