From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2E3A859CAB for ; Mon, 28 Mar 2016 04:53:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 536B921C01B; Mon, 28 Mar 2016 04:53:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 88DE121C021 for ; Mon, 28 Mar 2016 04:53: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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B24F340896 for ; Mon, 28 Mar 2016 04:53:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4AAE8872 for ; Mon, 28 Mar 2016 04:53:50 +0000 (UTC) From: "Mike Frysinger" 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 Frysinger" Message-ID: <1459133892.d2341937bd97afa24f09742f0ccf5e5e3bf053d3.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: qlop.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d2341937bd97afa24f09742f0ccf5e5e3bf053d3 X-VCS-Branch: master Date: Mon, 28 Mar 2016 04:53:50 +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-Archives-Salt: 44836465-6fdc-4872-aa49-491f88b863a9 X-Archives-Hash: 78d2d0ad9bd9b1e4790e9014d5c97b3e commit: d2341937bd97afa24f09742f0ccf5e5e3bf053d3 Author: Mike Frysinger gentoo org> AuthorDate: Mon Mar 28 02:58:12 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Mar 28 02:58:12 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d2341937 qlop: drop redundant headers These are already pulled in via porting.h. qlop.c | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/qlop.c b/qlop.c index ad62474..319d767 100644 --- a/qlop.c +++ b/qlop.c @@ -8,24 +8,6 @@ #ifdef APPLET_qlop -#ifdef __linux__ -# include -#endif - -#ifdef __FreeBSD__ -# include -# include -# include -# include -# include -#endif - -#ifdef __MACH__ -# include -# include -# include -#endif - #define QLOP_DEFAULT_LOGFILE "emerge.log" #define QLOP_FLAGS "gtHluscf:" COMMON_FLAGS @@ -379,7 +361,8 @@ show_sync_history(const char *logfile) _q_static void show_current_emerge(void); #ifdef __linux__ -#include +# include +# include static unsigned long hz = 0; static void init_hz(void) { @@ -495,6 +478,10 @@ void show_current_emerge(void) puts("No emerge processes located"); } #elif defined(__FreeBSD__) +# include +# include +# include +# include void show_current_emerge(void) { kvm_t *kd = NULL; @@ -545,6 +532,7 @@ void show_current_emerge(void) puts("No emerge processes located"); } #elif defined(__MACH__) +# include void show_current_emerge(void) { int mib[3];