From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C8CB13835A for ; Thu, 19 Nov 2020 18:20:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2D0AE0814; Thu, 19 Nov 2020 18:20:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB051E0814 for ; Thu, 19 Nov 2020 18:20:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 62B0933BE2F for ; Thu, 19 Nov 2020 18:20:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D6A263C3 for ; Thu, 19 Nov 2020 18:20:51 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1605809802.9d503ef40a6d73eea14b6f5015cb2abd9eee292b.floppym@gentoo> Subject: [gentoo-commits] proj/gentoo-functions:master commit in: / X-VCS-Repository: proj/gentoo-functions X-VCS-Files: consoletype.c X-VCS-Directories: / X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 9d503ef40a6d73eea14b6f5015cb2abd9eee292b X-VCS-Branch: master Date: Thu, 19 Nov 2020 18:20:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 84c51fc8-5492-4080-9318-aff918fe5a76 X-Archives-Hash: f1a15852dfd19169beeacca696ff8f5b commit: 9d503ef40a6d73eea14b6f5015cb2abd9eee292b Author: Jacob Floyd gmail com> AuthorDate: Thu Nov 19 17:20:01 2020 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Nov 19 18:16:42 2020 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=9d503ef4 Only include sysmacros.h on linux sysmacros.h is only needed for major() which is only used within an `#if defined(__linux__)` block. So, this header is only needed on linux. Bug: https://bugs.gentoo.org/751511 Signed-off-by: Jacob Floyd gmail.com> Signed-off-by: Mike Gilbert gentoo.org> consoletype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/consoletype.c b/consoletype.c index dfbda22..b7bf4e6 100644 --- a/consoletype.c +++ b/consoletype.c @@ -13,7 +13,9 @@ #include #include #include +#if defined(__linux__) #include +#endif enum termtype { IS_VT = 0,