[dpdk-dev] [RFC PATCHv2 3/8] eal: Add extern C on eal_thread.h

Takuya ASADA syuu at cloudius-systems.com
Sat Mar 21 04:23:00 CET 2015


This is required to link with OSv EAL.

Signed-off-by: Takuya ASADA <syuu at cloudius-systems.com>
---
 lib/librte_eal/common/eal_thread.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/librte_eal/common/eal_thread.h b/lib/librte_eal/common/eal_thread.h
index e4e76b9..794137f 100644
--- a/lib/librte_eal/common/eal_thread.h
+++ b/lib/librte_eal/common/eal_thread.h
@@ -34,6 +34,10 @@
 #ifndef EAL_THREAD_H
 #define EAL_THREAD_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <rte_lcore.h>
 
 /**
@@ -97,4 +101,8 @@ int eal_cpuset_socket_id(rte_cpuset_t *cpusetp);
 int
 eal_thread_dump_affinity(char *str, unsigned size);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* EAL_THREAD_H */
-- 
2.1.0



More information about the dev mailing list