From patchwork Thu Jan 4 03:04:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 13510741 X-Patchwork-Delegate: bpf@iogearbox.net Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DB3B1427B for ; Thu, 4 Jan 2024 03:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qYz965wE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF0D0C433C8; Thu, 4 Jan 2024 03:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704337461; bh=sAyrKHLVBjkWeFIXbnLiiUQGWhzywVhOLv2qjZUQpkM=; h=Date:From:To:Cc:Subject:From; b=qYz965wEKiEPv7hM0fI8CibF/WTuSU2fIsJJaNa0F4eCYouTCywmfYiax1QsBdrz4 2CRAJT1S9yTEQWZUsZi7nHq4u9af+fwLBgxdsbGKWltQUS7D0aQj8PLyGZ0c/ZSUDw Fi3M+qBtUQQaHU4vdz/+TMEGUrq2j8PDKrw9cVqTjr2LpaF8w7v1PDb0W1uq5fYgzG wJKww3ZnI5TFubl0ymcOqRxr+ku+38sIbUXE28iQfOpnJx9SiX1+TxnLCw4KKRyqd2 f6WTfSbXqA6sZx1I3iwdiZh0H0zdvzAeD72aeFA3LoLRwMuusT/7+K/rbtriFYW2ws /gRO3LFpt8nuQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0899F403EF; Thu, 4 Jan 2024 00:04:17 -0300 (-03) Date: Thu, 4 Jan 2024 00:04:17 -0300 From: Arnaldo Carvalho de Melo To: Quentin Monnet Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Andrii Nakryiko , bpf@vger.kernel.org Subject: [PATCH] bpftool: Add missing libgen.h for basename() Message-ID: Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Url: http://acmel.wordpress.com X-Patchwork-Delegate: bpf@iogearbox.net The header with the prototype for basename() is missing in the gen.c file, which breaks the build in distros where that header doesn't get include by some of the other includes present in gen.c, by luck, fix it. Noticed when build perf on the Alpine Linux edge. Signed-off-by: Arnaldo Carvalho de Melo diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c index ee3ce2b8000d75d2..0e50722588b48fa0 100644 --- a/tools/bpf/bpftool/gen.c +++ b/tools/bpf/bpftool/gen.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include