From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takuya ASADA Subject: [RFC PATCHv2 3/8] eal: Add extern C on eal_thread.h Date: Sat, 21 Mar 2015 12:23:00 +0900 Message-ID: <1426908185-27940-4-git-send-email-syuu@cloudius-systems.com> References: <1426194348-4406-1-git-send-email-syuu@cloudius-systems.com> <1426908185-27940-1-git-send-email-syuu@cloudius-systems.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1426908185-27940-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" This is required to link with OSv EAL. Signed-off-by: Takuya ASADA --- 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 /** @@ -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