smap: bsd: Fix compilation error.
authorPravin B Shelar <pshelar@ovn.org>
Thu, 10 Mar 2016 00:40:40 +0000 (16:40 -0800)
committerPravin B Shelar <pshelar@ovn.org>
Fri, 11 Mar 2016 02:53:45 +0000 (18:53 -0800)
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 <pshelar@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/smap.h

index 7562f38..dd774d5 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef SMAP_H
 #define SMAP_H 1
 
+#include <netinet/in.h>
 #include "hmap.h"
 
 struct json;