txr: fix build on big endian

This commit is contained in:
q66 2020-01-06 15:17:56 +01:00
parent 8dfcf666a3
commit e96a31fe1e
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
commit 161de911edd37a0f64e42dfedfd9b35b212056e6
Author: q66 <daniel@octaforge.org>
Date: Mon Jan 6 15:15:22 2020 +0100
fix non-libffi build on big endian
diff --git ffi.c ffi.c
index 816afc4..535ca31 100644
--- ffi.c
+++ ffi.c
@@ -83,6 +83,7 @@ typedef struct ffi_type {
char type, size;
} ffi_type;
#define FFI_TYPE_STRUCT 0
+typedef unsigned long ffi_arg;
#endif
typedef enum {

View file

@ -4,6 +4,7 @@ version=227
revision=1
build_style=configure
make_check_target=tests
# enabling libffi causes double-free errors with musl
hostmakedepends="bison flex"
short_desc="Programming language for convenient data munging"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"