summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2017-08-08 14:30:28 -0700
committerJoe Stringer <joe@ovn.org>2017-08-08 16:21:12 -0700
commit08ba5f57f1a3305a4eab820c0d70ac7efd127b65 (patch)
treeb0209b1cc0f1dca240ffe12563aae4fb136f85a9 /include
parentebd5a960cd53b1d7f1f468a522dbe4d515859118 (diff)
downloadopenvswitch-08ba5f57f1a3305a4eab820c0d70ac7efd127b65.tar.gz
include: Add struct declaration to ofp-print.h.
If a libopenvswitch user includes ofp-print.h before ofp-util.h (which is standard alphabetical order), and turns on -Werror, then they would hit this compilation error in the include: error: 'struct ofputil_port_map' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] void ofp_print(FILE *, const void *, size_t *, const struct ofputil_port_map *, Fixes: 50f96b10e1c8 ("Support accepting and displaying port names in OVS tools.") Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/ofp-print.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openvswitch/ofp-print.h b/include/openvswitch/ofp-print.h
index 20f049a37..d02634e3e 100644
--- a/include/openvswitch/ofp-print.h
+++ b/include/openvswitch/ofp-print.h
@@ -29,6 +29,7 @@ struct ofp10_match;
struct ofp_flow_mod;
struct ofp_header;
struct ofputil_flow_stats;
+struct ofputil_port_map;
struct ofputil_table_features;
struct ofputil_table_stats;
struct dp_packet;