vhost: fix C++ include
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 10 Feb 2022 15:42:38 +0000 (15:42 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Feb 2022 22:05:32 +0000 (23:05 +0100)
commit1d1126ad436e8c7c015fb3f67ad3af05c3b397d5
treee3e3e9cf5f1573ebe0b20368ebb219dd0f2dc5e8
parent097ea8e274440919433cd932ec7a1b2f3956180b
vhost: fix C++ include

The virtio kernel header includes are already noted as being
incompatible with C++. We can ensure that the header is safe for
inclusion in C++ code by not including those headers during C++ builds.
While not ideal, this does ensure that all DPDK headers can be included
in C++ code without errors.

Fixes: f8904d563691 ("vhost: fix header for strict compilation flags")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/vhost/rte_vhost.h