From ba1f2ba9c33c5006bc4c0ced9a9f923eb2c16655 Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Mon, 8 Jun 2020 07:08:40 -0700 Subject: [PATCH] Fix a build error on Linux due to wrong include ordering This regression was caused by the commit that introduced the times builtin. The ordering of the #include directives was causing the build to fail on Ubuntu 20.04 and Arch Linux. src/cmd/ksh93/bltins/misc.c: - Move the includes for standard headers to the bottom of the includes to fix build failures on Linux. (cherry picked from commit 3a42b206a0cc71bedc4773ce545435570e862e61) --- src/cmd/ksh93/bltins/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/ksh93/bltins/misc.c b/src/cmd/ksh93/bltins/misc.c index e04530f35..58e41d6ac 100644 --- a/src/cmd/ksh93/bltins/misc.c +++ b/src/cmd/ksh93/bltins/misc.c @@ -36,9 +36,6 @@ * */ -#include -#include - #include "defs.h" #include "variables.h" #include "shnodes.h" @@ -49,6 +46,9 @@ #include "builtins.h" #include "jobs.h" +#include +#include + #define DOTMAX MAXDEPTH /* maximum level of . nesting */ static void noexport(Namval_t*,void*);