This is required to link with OSv EAL. Signed-off-by: Takuya ASADA <syuu at cloudius-systems.com> --- lib/librte_eal/common/eal_hugepages.h | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/lib/librte_eal/common/eal_hugepages.h b/lib/librte_eal/common/eal_hugepages.h index 38edac0..b722aee 100644 --- a/lib/librte_eal/common/eal_hugepages.h +++ b/lib/librte_eal/common/eal_hugepages.h @@ -34,6 +34,10 @@ #ifndef EAL_HUGEPAGES_H #define EAL_HUGEPAGES_H +#ifdef __cplusplus +extern "C" { +#endif + #include <stddef.h> #include <stdint.h> #include <limits.h> @@ -64,4 +68,8 @@ struct hugepage_file { */ int eal_hugepage_info_init(void); +#ifdef __cplusplus +} +#endif + #endif /* EAL_HUGEPAGES_H */ -- 2.1.0