From b4f6e930523b15bd2bf5e5fa7885761034bd815d Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Wed, 9 Mar 2016 16:40:40 -0800 Subject: [PATCH] smap: bsd: Fix compilation error. I saw following error while testing this series. ---8<--- In file included from lib/smap.c:16: ./lib/smap.h:75:56: warning: declaration of 'struct in6_addr' will not be visible outside of this function [-Wvisibility] void smap_add_ipv6(struct smap *, const char *, struct in6_addr *); ^ lib/smap.c:102:1: error: conflicting types for 'smap_add_ipv6' smap_add_ipv6(struct smap *smap, const char *key, struct in6_addr *addr) ^ ./lib/smap.h:75:6: note: previous declaration is here void smap_add_ipv6(struct smap *, const char *, struct in6_addr *); Signed-off-by: Pravin B Shelar Acked-by: Ben Pfaff --- lib/smap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/smap.h b/lib/smap.h index 7562f3841..dd774d592 100644 --- a/lib/smap.h +++ b/lib/smap.h @@ -15,6 +15,7 @@ #ifndef SMAP_H #define SMAP_H 1 +#include #include "hmap.h" struct json; -- 2.20.1