summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2018-12-30 12:18:27 +0800
committerExplorer09 <explorer09@gmail.com>2019-06-14 10:10:23 +0800
commit351297108488d0a77f4ce666c1b7d82e6aae0831 (patch)
tree4638f989ebcd0df9a34c41bd2d681ace5d389b8b /Process.c
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Fix configure 'major' workaround causing <sys/sysmacros.h> to miss.
A logic mistake in pull request #746 causes <sys/sysmacro.h> to be *not* included when AC_HEADER_MAJOR (before autoconf-2.70) finds 'major' in <sys/types.h>. Though this would still build htop, it would still bring deprecation warning in systems using glibc 2.25-2.27. Fix the logic and suppress the warning. Also, include config.h in Process.c for the sake of strengthening the code. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Process.c b/Process.c
index 54c41af4..420311dc 100644
--- a/Process.c
+++ b/Process.c
@@ -8,6 +8,8 @@ in the source distribution for its full text.
#include "Process.h"
#include "Settings.h"
+#include "config.h"
+
#include "CRT.h"
#include "StringUtils.h"
#include "RichString.h"

© 2014-2024 Faster IT GmbH | imprint | privacy policy