From 351297108488d0a77f4ce666c1b7d82e6aae0831 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Sun, 30 Dec 2018 12:18:27 +0800 Subject: Fix configure 'major' workaround causing to miss. A logic mistake in pull request #746 causes to be *not* included when AC_HEADER_MAJOR (before autoconf-2.70) finds 'major' in . 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 --- Process.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Process.c') 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" -- cgit v1.2.3