]> git.droids-corp.org - dpdk.git/commitdiff
eal/freebsd: add missing C++ include guards
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 11 Mar 2022 20:05:19 +0000 (20:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 Mar 2022 01:06:13 +0000 (02:06 +0100)
Add missing 'extern "C"' to file.

Fixes: 428eb983f5f7 ("eal: add OS specific header file")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/eal/freebsd/include/rte_os.h

index 9d8a69008cbc251d5323cb8843efa6a253571b88..b4afd45adc75803357d1d7fc82e15f7174e32320 100644 (file)
@@ -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_ */