[dpdk-dev,RFC,PATCHv2,3/8] eal: Add extern C on eal_thread.h
Commit Message
This is required to link with OSv EAL.
Signed-off-by: Takuya ASADA <syuu@cloudius-systems.com>
---
lib/librte_eal/common/eal_thread.h | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -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 */