]> git.proxmox.com Git - mirror_ovs.git/commit - utilities/ovs-dpctl.c
sparse: Add guards to prevent FreeBSD-incompatible #include order.
authorBen Pfaff <blp@ovn.org>
Mon, 6 Nov 2017 22:42:32 +0000 (14:42 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Dec 2017 20:58:02 +0000 (12:58 -0800)
commitb2befd5bb2db811ac0273bc52be158d3476a5ff7
tree1c4e11f4cabdf80e2904b8268b5f3a2daafae3a9
parent9041097aeec97b41f8a2d607e2c72a99b4f60d6a
sparse: Add guards to prevent FreeBSD-incompatible #include order.

FreeBSD insists that <sys/types.h> be included before <netinet/in.h> and
that <netinet/in.h> be included before <arpa/inet.h>.  This adds guards to
the "sparse" headers to yield a warning if this order is violated.  This
commit also adjusts the order of many #includes to suit this requirement.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
53 files changed:
configure.ac
include/openvswitch/packets.h
include/sparse/arpa/inet.h
include/sparse/automake.mk
include/sparse/netinet/in.h
include/sparse/sys/types.h [new file with mode: 0644]
lib/bfd.c
lib/bundle.c
lib/bundle.h
lib/byte-order.h
lib/classifier.c
lib/csum.c
lib/dpctl.c
lib/dpif-netdev.c
lib/learning-switch.c
lib/lldp/lldpd-structs.h
lib/lldp/lldpd.c
lib/lldp/lldpd.h
lib/multipath.c
lib/netdev-linux.c
lib/netdev-native-tnl.c
lib/netdev-vport.c
lib/netdev.c
lib/netlink.h
lib/odp-execute.c
lib/odp-util.c
lib/ofp-actions.c
lib/ofp-ed-props.c
lib/ofp-parse.c
lib/ovs-lldp.c
lib/ovs-router.c
lib/ovs-router.h
lib/packets.c
lib/route-table.c
lib/rstp-state-machines.c
lib/rstp.c
lib/sflow_api.h
lib/smap.h
lib/socket-util.c
lib/stream.c
lib/tc.h
lib/util.h
lib/vconn.c
ofproto/in-band.c
ofproto/in-band.h
ofproto/netflow.c
ofproto/ofproto-dpif-xlate-cache.c
ofproto/ofproto-dpif-xlate-cache.h
ofproto/ofproto-dpif-xlate.c
ovn/lib/ovn-l7.h
tests/test-csum.c
tests/test-sflow.c
utilities/ovs-dpctl.c