From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from BLU004-OMC4S27.hotmail.com (blu004-omc4s27.hotmail.com [65.55.111.166]) by dpdk.org (Postfix) with ESMTP id 8AD36569D for ; Sun, 3 Jan 2016 15:50:01 +0100 (CET) Received: from BLU436-SMTP157 ([65.55.111.135]) by BLU004-OMC4S27.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 3 Jan 2016 06:50:01 -0800 X-TMN: [ZiHJrTMa+smmkbFQm7Q1e975mssZhDfk] X-Originating-Email: [luyi68@live.com] Message-ID: From: Yi Lu To: david.marchand@6wind.com Date: Sun, 3 Jan 2016 22:49:12 +0800 X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 03 Jan 2016 14:49:58.0942 (UTC) FILETIME=[0493ABE0:01D14636] 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:50:01 -0000 Error message: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c: In function =E2= =80=98rte_eal_hpet_init=E2=80=99: /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: impl= icit declaration of function =E2=80=98rte_thread_setname=E2=80=99 [-Werror= =3Dimplicit-function-declaration] ret =3D rte_thread_setname(msb_inc_thread_id=2C thread_name)=3B ^ /root/dpdk-2.2.0/lib/librte_eal/linuxapp/eal/eal_timer.c:222:2: error: nest= ed extern declaration of =E2=80=98rte_thread_setname=E2=80=99 [-Werror=3Dne= sted-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=2C 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linux= app/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=2C6 +50=2C7 @@ #include #include #include +#include #include =20 #include "eal_private.h" --=20 1.8.3.1