[1/5] eal/freebsd: add missing C++ include guards
Checks
Commit Message
Add mising 'extern "C"' to file.
Fixes: 428eb983f5f7 ("eal: add OS specific header file")
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/eal/freebsd/include/rte_os.h | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -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_ */