From nobody Sun Aug 9 23:07:31 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hJD7749fXz6pFFH for ; Sun, 09 Aug 2026 23:07:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hJD773Xl4z3WyZ for ; Sun, 09 Aug 2026 23:07:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786316851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lvseTa9MkWZsctFUzTxsM+2ZFFcMUqzvh37RL3xtEHU=; b=Gue0PCTKe8gmWb35vg0J0BKZR83CFYCuJm2UWi7KC/Kt5fgao4zXP/0FmPMolcuMw2+NJm yvdWhZf3rNIrFes70a7hLwOhL2Rm75neuY1dbXvsC3wbPDVSeyyg1xsAEnGVU3yeMH2wTC dXK8GqFrjRDIHoqXQAvduFZYBumQ0xwuOtvt0kwnfMXkKOsdkYGTkCrdrw/sJ4+AujY8Jg AuU4n9lvUMCSchp9r5K9e/J2z+n+dBRZzRS+JGQNK5hCf0HWif2M/f9EKyZ+iGFY6YrGAD 6MxbieUnGu6lHY6DvT17jJVsGt18x1XexNog7x1f6jAI6cCoWDXpk0KLLB0L9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786316851; a=rsa-sha256; cv=none; b=x77+v5t6BSiFKGxZG0aeVui2TpapYSB8x84HqUKjWEWFcYwSHcuo/2C8v230XDWoiR92c8 1b4qH+rescKFS+6Zz50VIMsy3Xh5Iwv8AWL2UQqGriMDLq4zSJ2GaAefseJetZbamiTe5Q HrKIen3GI8oyow9mQ341ahhR/3ZG8lE1VK1O90r3McwCpWtsyvpBiHe6/b4oLzE5jHF793 EtmRd3Z/jhlfRgPaea+Y9oYShQNCPeQp4HEDx0UMsWrnISIKWH6/5xPf1wyTgA4an18xf2 fQYxMjn6ogZ7fJrejlDeTrtACA6xrz92UKVZ6m+rdltbQu62xg/66zF1tTvlkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786316851; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lvseTa9MkWZsctFUzTxsM+2ZFFcMUqzvh37RL3xtEHU=; b=iP0CBzCYIeqxU95H6AwFGPhKiCjnnLu/Sk14NUcjtDK4EgJ7gSLerQ9XHKbBQBM1vfVShF tkme7TSsV9VifufdV4etc2zL1Jr8eqLG1zML8WiSknX0f9ot8dANBcZVLEK+Khe/CDxoLS AGghqlYRUAgJe5J5VPNGRXVFyAJIlMT5c+iqT2XoGJI9Mn/lFQiOk7VgwZh2HyBqFPXiC/ fy1DvxXsbcItiW1dQPSsDhcQiBmnq/5R7h63c2E8Q70pY2hXujyZxMyOjlLjIpwTk3soYS FtuxJEw4dzHBhMgFxKe/qy+Cag08V/rihXzWssFibgx1C1my8kKL5m1tNzNdAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hJD772NCSzkhQ for ; Sun, 09 Aug 2026 23:07:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39806 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 09 Aug 2026 23:07:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 503f16182e08 - main - pmc(8): add missing headers to not rely on header pollution List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 503f16182e08d58ce17843cf5a71c7dbc27af6b5 Auto-Submitted: auto-generated Date: Sun, 09 Aug 2026 23:07:31 +0000 Message-Id: <6a790833.39806.6b2fb8a4@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=503f16182e08d58ce17843cf5a71c7dbc27af6b5 commit 503f16182e08d58ce17843cf5a71c7dbc27af6b5 Author: Enji Cooper AuthorDate: 2026-08-09 23:05:33 +0000 Commit: Enji Cooper CommitDate: 2026-08-09 23:07:03 +0000 pmc(8): add missing headers to not rely on header pollution This mutes a number of complains from g++ about needing specific headers for functionality related to C strings and other function prototypes. Reported by: g++ 14 --- usr.sbin/pmc/cmd_pmc_summary.cc | 1 + usr.sbin/pmc/display.cc | 1 + usr.sbin/pmc/view.cc | 1 + usr.sbin/pmc/view.hh | 2 ++ 4 files changed, 5 insertions(+) diff --git a/usr.sbin/pmc/cmd_pmc_summary.cc b/usr.sbin/pmc/cmd_pmc_summary.cc index 610c1fee7f0d..c1eb00c28672 100644 --- a/usr.sbin/pmc/cmd_pmc_summary.cc +++ b/usr.sbin/pmc/cmd_pmc_summary.cc @@ -65,6 +65,7 @@ #include #include "cmd_pmc.h" +#include #include #include #include diff --git a/usr.sbin/pmc/display.cc b/usr.sbin/pmc/display.cc index 454cb74e29bd..fe0c86336196 100644 --- a/usr.sbin/pmc/display.cc +++ b/usr.sbin/pmc/display.cc @@ -42,6 +42,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/pmc/view.cc b/usr.sbin/pmc/view.cc index 352856939a66..a678c061d490 100644 --- a/usr.sbin/pmc/view.cc +++ b/usr.sbin/pmc/view.cc @@ -43,6 +43,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/pmc/view.hh b/usr.sbin/pmc/view.hh index 46b7c49222f0..9a0702c08803 100644 --- a/usr.sbin/pmc/view.hh +++ b/usr.sbin/pmc/view.hh @@ -36,6 +36,8 @@ #include #include +#include + #include "headers.hh" #include "util.hh"