From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (unknown [116.230.214.98]) by dpdk.org (Postfix) with ESMTP id 220DD568D for ; Sun, 3 Jan 2016 15:35:52 +0100 (CET) Received: by localhost.localdomain (Postfix, from userid 0) id 853DF4119F84; Sun, 3 Jan 2016 22:35:27 +0800 (CST) From: Yi Lu To: david.marchand@6wind.com Date: Sun, 3 Jan 2016 22:35:14 +0800 Message-Id: <1451831714-27797-1-git-send-email-luyi68@live.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] eal: fix compile error in eal_timer.c X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2016 14:35:52 -0000 Error message: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function ‘rte_eal_hpet_init’: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: implicit declaration of function ‘rte_thread_setname’ [-Werror=implicit-function-declaration] ret = rte_thread_setname(msb_inc_thread_id, thread_name); ^ /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nested extern declaration of ‘rte_thread_setname’ [-Werror=nested-externs] cc1: all warnings being treated as errors Fixes: badb3688ffa8 ("eal/linux: fix build with glibc < 2.12") Signed-off-by: Yi Lu --- lib/librte_eal/linuxapp/eal/eal_timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c index 9ceff33..bcadf09 100644 --- a/lib/librte_eal/linuxapp/eal/eal_timer.c +++ b/lib/librte_eal/linuxapp/eal/eal_timer.c @@ -50,6 +50,7 @@ #include #include #include +#include #include #include "eal_private.h" -- 1.8.3.1