txr: fix build on big endian
This commit is contained in:
parent
8dfcf666a3
commit
e96a31fe1e
2 changed files with 19 additions and 0 deletions
18
srcpkgs/txr/patches/nolibffi-endian.patch
Normal file
18
srcpkgs/txr/patches/nolibffi-endian.patch
Normal 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 {
|
|
@ -4,6 +4,7 @@ version=227
|
||||||
revision=1
|
revision=1
|
||||||
build_style=configure
|
build_style=configure
|
||||||
make_check_target=tests
|
make_check_target=tests
|
||||||
|
# enabling libffi causes double-free errors with musl
|
||||||
hostmakedepends="bison flex"
|
hostmakedepends="bison flex"
|
||||||
short_desc="Programming language for convenient data munging"
|
short_desc="Programming language for convenient data munging"
|
||||||
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue