From: Anatoly Burakov Date: Thu, 22 Feb 2018 17:13:59 +0000 (+0000) Subject: vfio: fix headers for C++ support X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4fc90035af09806aeeff2b79bada258c8ee91a05;p=dpdk.git vfio: fix headers for C++ support Fixes: 279b581c897d ("vfio: expose functions") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov --- diff --git a/lib/librte_eal/common/include/rte_vfio.h b/lib/librte_eal/common/include/rte_vfio.h index e981a62288..249095e467 100644 --- a/lib/librte_eal/common/include/rte_vfio.h +++ b/lib/librte_eal/common/include/rte_vfio.h @@ -28,6 +28,10 @@ #define VFIO_NOIOMMU_MODE \ "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode" +#ifdef __cplusplus +extern "C" { +#endif + /** * Setup vfio_cfg for the device identified by its address. * It discovers the configured I/O MMU groups or sets a new one for the device. @@ -123,6 +127,10 @@ int rte_vfio_noiommu_is_enabled(void); int rte_vfio_clear_group(int vfio_group_fd); +#ifdef __cplusplus +} +#endif + #endif /* VFIO_PRESENT */ #endif /* _RTE_VFIO_H_ */