Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1145406pxb; Tue, 17 Aug 2021 05:03:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnx0hjAZqF7PBoHOk0PQDuIgsp/gFzqXC/uAxLhqjiqUz+OMWHrCouuTdvzTCWtf1ZzSBM X-Received: by 2002:a2e:9d8e:: with SMTP id c14mr2925158ljj.156.1629201832541; Tue, 17 Aug 2021 05:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629201832; cv=none; d=google.com; s=arc-20160816; b=qdnqFFbbnYK9blGM6PMdqwhcM543Ub6JbpS54t/PdYhCHBHM577fEo9gIrTdZcP4nc ssPwfP7R6aedTIPbRQoM8jjgFdVO46l9wkLXsQZGYIZtR3uwZR5HNskR5jaVLP8RllRG ItsWgoBEg9+nqzbprUTss/JkC5UcVYYmxyuvpxt5w+a0QzbB4oZ8ef/pzOTws133J14/ eYrDq7wm8XqsDL2RHvXbPYrQAfrB598Sq0FAMTx72C17usI3ZsfBMPUkGh4dDXi5S/DW LNVktsUhCkXsZEu018EGVxZaMlrmihxBAK6k6CQMHYApBh6fHSKoYT/E4nhEPDM63V5D Kk6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=NMClj8Ypq+ih4H38J99oyoEKMrmlbDDN3Ps+QAMa1xs=; b=nUvSRboCyWe6qggVpJN6dIRDQ1ibHKBtGMmHvunh8y3BBb/FvYqeTtOkG2XRF79Lj/ thMNTkrbaOydENMw38vpVBeD9wvE9/T8FWul4yR08VOUJhYTVAuhBLZ3Ous6zB0574pR c9ihvxjL7ROiGjU0ggCo5D8FwZVxIeBaaCpOtycdhO910lxLqyAFTAokURC45k6mFwj9 q7xyd4x4MAwHfLi70n+n0km+t1mii3+kAhbCmtpLCV/Jl+k22UupJxCUshXoplbBd6l/ +6lWQAXCyV5pGnVFi4of2VnYRrS0pCVZ2smc2Kcc6VCYfwl4tYKDC+DSfPDy3/coC3wz WtaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bIBakpYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1770498edc.144.2021.08.17.05.03.17; Tue, 17 Aug 2021 05:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bIBakpYr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236751AbhHQL7M (ORCPT + 99 others); Tue, 17 Aug 2021 07:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236933AbhHQL7J (ORCPT ); Tue, 17 Aug 2021 07:59:09 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8864C0613C1; Tue, 17 Aug 2021 04:58:36 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 79-20020a1c0452000000b002e6cf79e572so1718452wme.1; Tue, 17 Aug 2021 04:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=NMClj8Ypq+ih4H38J99oyoEKMrmlbDDN3Ps+QAMa1xs=; b=bIBakpYrI9wwQ1Xh4C+E1Z2fLukRCYhJMuKjnhmNzGyWVpuoYIo/Byg989ZIXsHd+u 69obgaoYAcJPB9MnAuPcFZRSSsNxoHcqNqa5KemgcVRis90tFLdqKvfsWMKqYULLTcJe 2ydnWOtyTwzEM84MaGHXl40noHnvGsX1Xv9tDhq/HzzyHSmxf80xJru6pre2qJUVKGUq SBxrxkGvoVCaO0qTLE+wPMG23iuvz5SF/Vb6QfOOz0XrvDVkx6hnab4dTvuZoqa5i5lJ DXLzxDnqAKQjAFsW/X6JR9xebIippblqsi6s7HdWm/y0bWNMTWZmhZagtF3NjCrA+QQu Wu4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=NMClj8Ypq+ih4H38J99oyoEKMrmlbDDN3Ps+QAMa1xs=; b=AzhHi+NL9Q5kjskxmj8wM0M2Qr4AM95JCuvRed0t46IJm4PI+d9R+2EBg/I9EDcnTA N1wwlkgvhUjWcxT18/xKI3DqUvWMp4VfyJ55GQ8y0LvDk6bu5hlkCo+8P+xVBa3g8cfo AagvuXYZHkeqTmZV0rfasgem95kTBIKkO6uEFMcQ0VbmpaHrcdtNggfH4RvaHyQ5cW2Z vukjTyp0SQtc1hA9Mp3UfnOg2bzgp9fkDqAaOkJvpMoqcGfMgYcodcmSQgtrj12eE/Rr WhpAdu564oHIA958Ukcd/AVtOzHzjfc53NqwKl1l1J1mXw8WZLHV+EN8/ZKxLcUMVHMk SI6g== X-Gm-Message-State: AOAM533UkQvqTQnrX+dxFK5E/Mr8llwIT/XzQl2aFqV4an+90LI9eLpB 71xfRSpd8bXq1fEp2LWA8Q== X-Received: by 2002:a05:600c:b51:: with SMTP id k17mr2917586wmr.149.1629201515461; Tue, 17 Aug 2021 04:58:35 -0700 (PDT) Received: from localhost.localdomain ([46.53.250.98]) by smtp.gmail.com with ESMTPSA id b15sm2153773wrq.5.2021.08.17.04.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 04:58:35 -0700 (PDT) Date: Tue, 17 Aug 2021 14:58:33 +0300 From: Alexey Dobriyan To: acme@kernel.org Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH] perf, android: fixup get_current_dir_name() compilation Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org strdup() prototype doesn't live in stdlib.h . Add limits.h for PATH_MAX definition as well. Signed-off-by: Alexey Dobriyan (SK hynix) --- tools/perf/util/get_current_dir_name.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/perf/util/get_current_dir_name.c +++ b/tools/perf/util/get_current_dir_name.c @@ -3,8 +3,9 @@ // #ifndef HAVE_GET_CURRENT_DIR_NAME #include "get_current_dir_name.h" +#include +#include #include -#include /* Android's 'bionic' library, for one, doesn't have this */