diff options
Diffstat (limited to 'testing/neko/compilation-fixes.patch')
| -rw-r--r-- | testing/neko/compilation-fixes.patch | 27 |
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 |
