1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

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)
This commit is contained in:
Johnothan King 2020-06-08 07:08:40 -07:00 committed by Martijn Dekker
parent 40d0bdc287
commit ba1f2ba9c3

View file

@ -36,9 +36,6 @@
*
*/
#include <math.h>
#include <times.h>
#include "defs.h"
#include "variables.h"
#include "shnodes.h"
@ -49,6 +46,9 @@
#include "builtins.h"
#include "jobs.h"
#include <math.h>
#include <times.h>
#define DOTMAX MAXDEPTH /* maximum level of . nesting */
static void noexport(Namval_t*,void*);