From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] eal: fix compile error for old glibc caused by pthread_setname_np() Date: Wed, 25 Nov 2015 14:41:22 +0100 Message-ID: <9863344.JMKfCW1DEN@xps13> References: <20151124184755.GA26521@sivlogin002.ir.intel.com> <1448450035-23991-1-git-send-email-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ferruh Yigit Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 40CDC8D91 for ; Wed, 25 Nov 2015 14:42:41 +0100 (CET) Received: by wmec201 with SMTP id c201so256973546wme.0 for ; Wed, 25 Nov 2015 05:42:41 -0800 (PST) In-Reply-To: <1448450035-23991-1-git-send-email-ferruh.yigit@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-11-25 11:13, Ferruh Yigit: > Fixes: 67b6d3039e9e ("eal: set name to threads") > > pthread_setname_np() function added in glibc 2.12, using this function > in older glibc versions cause compile error: > error: implicit declaration of function "pthread_setname_np" > > This patch adds "rte_thread_setname" macro and set it according > glibc >= 2.12 check, thread naming disabled for older glibc versions, > glibc versions that support "pthread_setname_np" will keep using this > function. > > Signed-off-by: Ferruh Yigit Applied as eal/linux fix, thanks