From 29fd052dcc3be76112bc7b03a918308ebcf901d8 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 11 Mar 2022 20:05:19 +0000 Subject: [PATCH] eal/freebsd: add missing C++ include guards Add missing 'extern "C"' to file. Fixes: 428eb983f5f7 ("eal: add OS specific header file") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- lib/eal/freebsd/include/rte_os.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/eal/freebsd/include/rte_os.h b/lib/eal/freebsd/include/rte_os.h index 9d8a69008c..b4afd45adc 100644 --- a/lib/eal/freebsd/include/rte_os.h +++ b/lib/eal/freebsd/include/rte_os.h @@ -5,6 +5,10 @@ #ifndef _RTE_OS_H_ #define _RTE_OS_H_ +#ifdef __cplusplus +extern "C" { +#endif + /** * This header should contain any definition * which is not supported natively or named differently in FreeBSD. @@ -59,4 +63,8 @@ typedef cpuset_t rte_cpuset_t; } while (0) #endif +#ifdef __cplusplus +} +#endif + #endif /* _RTE_OS_H_ */ -- 2.39.5