From 44f84f406f08d1b838abbe7a1ae3513a29a752d4 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Sat, 17 Nov 2018 09:19:35 -0700
Subject: [PATCH] Force byte order to little endian, for gcc

---
 include/sys/param.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/sys/param.h b/include/sys/param.h
index 68ff8c172..c8b03e755 100644
--- a/include/sys/param.h
+++ b/include/sys/param.h
@@ -31,4 +31,18 @@
 #include <sys/resource.h>
 #include <limits.h>
 
+/* TODO: Forcing little endian, if you need a big endian system, fix this { */
+#ifndef BIG_ENDIAN
+#define BIG_ENDIAN 4321
+#endif
+
+#ifndef LITTLE_ENDIAN
+#define LITTLE_ENDIAN 1234
+#endif
+
+#ifndef BYTE_ORDER
+#define BYTE_ORDER LITTLE_ENDIAN
+#endif
+/* } */
+
 #endif
-- 
GitLab