From 5478ed18ea4dbce3e73e2694a926118e0df1d7a7 Mon Sep 17 00:00:00 2001
From: stijn <stinos@zoho.com>
Date: Sat, 28 Jun 2014 20:49:39 +0200
Subject: [PATCH] unix: Fix mpconfig.h not being included before misc.h

This fixes count_lead_ones in misc.h not compiling due to unknown types
---
 unix/gccollect.c | 2 +-
 unix/modos.c     | 2 +-
 unix/modtime.c   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/unix/gccollect.c b/unix/gccollect.c
index f24cc5249..be05ff3eb 100644
--- a/unix/gccollect.c
+++ b/unix/gccollect.c
@@ -26,8 +26,8 @@
 
 #include <stdio.h>
 
-#include "misc.h"
 #include "mpconfig.h"
+#include "misc.h"
 #include "gc.h"
 
 #if MICROPY_ENABLE_GC
diff --git a/unix/modos.c b/unix/modos.c
index 2e02ef0aa..9b034cdbc 100644
--- a/unix/modos.c
+++ b/unix/modos.c
@@ -30,8 +30,8 @@
 #include <unistd.h>
 #include <errno.h>
 
-#include "misc.h"
 #include "mpconfig.h"
+#include "misc.h"
 #include "nlr.h"
 #include "qstr.h"
 #include "obj.h"
diff --git a/unix/modtime.c b/unix/modtime.c
index 006fd0ebd..286d8ea97 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -30,8 +30,8 @@
 #include <sys/time.h>
 #include <math.h>
 
-#include "misc.h"
 #include "mpconfig.h"
+#include "misc.h"
 #include "qstr.h"
 #include "obj.h"
 #include "runtime.h"
-- 
GitLab