blob: 666c017be1b7c3faf8cb5090df262af81c18bf8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git a/libs/std/sys.c b/libs/std/sys.c
index 8003d41..fc59b01 100644
--- a/libs/std/sys.c
+++ b/libs/std/sys.c
@@ -41,7 +41,6 @@
# include <sys/time.h>
# include <sys/times.h>
# include <sys/wait.h>
-# include <xlocale.h>
#endif
#ifdef NEKO_MAC
diff --git a/vm/module.c b/vm/module.c
index 7f857af..34afa52 100644
--- a/vm/module.c
+++ b/vm/module.c
@@ -34,6 +34,10 @@ DEFINE_KIND(neko_kind_module);
#ifdef NEKO_BSD
# include <sys/endian.h>
#endif
+#ifdef __GNUC__
+# include <endian.h>
+#define BYTE_ORDER __BYTE_ORDER
+#endif
#ifndef LITTLE_ENDIAN
# define LITTLE_ENDIAN 1
#endif
|