eal/linux: fix build with hpet
authorYi Lu <luyi68@live.com>
Thu, 28 Jan 2016 14:16:40 +0000 (14:16 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 3 Mar 2016 10:36:32 +0000 (11:36 +0100)
Fix compile error when enable CONFIG_RTE_LIBEAL_USE_HPET.

Error messages:
lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’:
lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error:
implicit declaration of function ‘rte_thread_setname’

Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12")

Signed-off-by: Yi Lu <luyi68@live.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_timer.c

index 6f95d8e..f2abb7b 100644 (file)
@@ -47,6 +47,7 @@
 #include <rte_common.h>
 #include <rte_log.h>
 #include <rte_cycles.h>
+#include <rte_lcore.h>
 #include <rte_memory.h>
 #include <rte_memzone.h>
 #include <rte_eal.h>