aports/testing/neko/compilation-fixes.patch
Jon Ong 12a8172125 testing/neko: new aport
http://nekovm.org/
High-level dynamically typed programming language
2016-07-08 09:53:42 +02:00

28 lines
601 B
Diff

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