From 0547924ee86f20afdaf5ed7ff8df2c3b2aa45a3a Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Sun, 12 Sep 2021 18:10:51 +0200 Subject: [PATCH] Fix delcaration/prototype for lif_compat_apply() Signed-off-by: Maximilian Wilhelm --- libifupdown/compat.c | 3 ++- libifupdown/compat.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libifupdown/compat.c b/libifupdown/compat.c index b6e5547..1c8f233 100644 --- a/libifupdown/compat.c +++ b/libifupdown/compat.c @@ -16,6 +16,7 @@ #include #include #include +#include "libifupdown/compat.h" #include "libifupdown/config-file.h" #include "libifupdown/dict.h" #include "libifupdown/interface.h" @@ -102,7 +103,7 @@ compat_ifupdown2_bridge_ports_inherit_vlans(struct lif_dict *collection) return true; } -extern bool +bool lif_compat_apply(struct lif_dict *collection) { if (lif_config.compat_ifupdown2_bridge_ports_inherit_vlans && diff --git a/libifupdown/compat.h b/libifupdown/compat.h index ebb668b..2bdfef2 100644 --- a/libifupdown/compat.h +++ b/libifupdown/compat.h @@ -17,6 +17,7 @@ #define LIBIFUPDOWN__COMPAT_H #include "libifupdown/config-file.h" +#include "libifupdown/dict.h" extern bool lif_compat_apply (struct lif_dict *collection);