diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2018-04-24 15:03:45 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2018-04-24 15:03:45 +0000 |
commit | ff26b59b781e540b8c3ec7606408aac1493a2580 (patch) | |
tree | 5eb684bd41507d0dc7a78c3459d5accc3faaaf57 /patches/musl/musl-0002-fopencookie+abi-compat.patch | |
parent | c27c8684a6c5787db8d501e9a85c79b2fb3142ab (diff) | |
download | midipix_build-ff26b59b781e540b8c3ec7606408aac1493a2580.tar.bz2 midipix_build-ff26b59b781e540b8c3ec7606408aac1493a2580.tar.xz |
patches/musl/musl-{0001-fopencookie,0002-fopencookie+abi-compat}.patch: added from upstream (via Redfoxmoon.)
vars/musl.vars:pkg_musl_{{no_complex,full}_host,full}_all(): apply all patches in ${MIDIPIX_BUILD_PWD}/patches/musl/ after extracting and prior to configuring.
Diffstat (limited to 'patches/musl/musl-0002-fopencookie+abi-compat.patch')
-rw-r--r-- | patches/musl/musl-0002-fopencookie+abi-compat.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/musl/musl-0002-fopencookie+abi-compat.patch b/patches/musl/musl-0002-fopencookie+abi-compat.patch new file mode 100644 index 00000000..772994dc --- /dev/null +++ b/patches/musl/musl-0002-fopencookie+abi-compat.patch @@ -0,0 +1,27 @@ +From 2488d31f5a946e63e40058baf29fd2991343ea6f Mon Sep 17 00:00:00 2001 +From: Rich Felker <dalias@aerifal.cx> +Date: Wed, 6 Dec 2017 13:14:22 -0500 +Subject: adjust fopencookie structure tag for ABI-compat + +stdio types use the struct tag names from glibc libio to match C++ +ABI. +--- + include/stdio.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/stdio.h b/include/stdio.h +index 2932c76..7c4f9ee 100644 +--- a/include/stdio.h ++++ b/include/stdio.h +@@ -188,7 +188,7 @@ typedef ssize_t (cookie_write_function_t)(void *, const char *, size_t); + typedef int (cookie_seek_function_t)(void *, off_t *, int); + typedef int (cookie_close_function_t)(void *); + +-typedef struct { ++typedef struct _IO_cookie_io_functions_t { + cookie_read_function_t *read; + cookie_write_function_t *write; + cookie_seek_function_t *seek; +-- +cgit v0.11.2 + |