aboutsummaryrefslogtreecommitdiffstats
path: root/testing/neko/compilation-fixes.patch
diff options
context:
space:
mode:
authorJon Ong <jonongjs@rottenmage.com>2016-06-26 18:37:34 +0800
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2016-07-08 09:53:42 +0200
commit12a8172125528c84dfbae822bd5e05f6e37331bb (patch)
tree1dd3a0f8de3ee8f03f8f26fb390cf4cfd5a615cc /testing/neko/compilation-fixes.patch
parent40a32b8c3a58f53a282c6e16234c75b3983fcae5 (diff)
downloadaports-12a8172125528c84dfbae822bd5e05f6e37331bb.tar.bz2
aports-12a8172125528c84dfbae822bd5e05f6e37331bb.tar.xz
testing/neko: new aport
http://nekovm.org/ High-level dynamically typed programming language
Diffstat (limited to 'testing/neko/compilation-fixes.patch')
-rw-r--r--testing/neko/compilation-fixes.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/neko/compilation-fixes.patch b/testing/neko/compilation-fixes.patch
new file mode 100644
index 0000000000..666c017be1
--- /dev/null
+++ b/testing/neko/compilation-fixes.patch
@@ -0,0 +1,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