diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-03-09 16:40:40 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-03-10 18:53:45 -0800 |
commit | b4f6e930523b15bd2bf5e5fa7885761034bd815d (patch) | |
tree | 5f790b0b1e932c53b7c1d11cf5293f50376e5473 /lib | |
parent | 0b024e4986ec32c52492621b6fcd7c248de34365 (diff) | |
download | openvswitch-b4f6e930523b15bd2bf5e5fa7885761034bd815d.tar.gz |
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 <pshelar@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smap.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 <netinet/in.h> #include "hmap.h" struct json; |