diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 19:34:48 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 19:34:48 +0100 |
commit | 076d984ad05b3bc5f454859b5e3a80c9b7459808 (patch) | |
tree | e679672a91bf7e625e8cbdb662a08794e224da95 /package/brutefir/patches/patch-emalloc_c | |
parent | 46e1c5e3ef185e3753bd18d145edda1c20c5efad (diff) |
brutefir: fix segfault with uClibc-ng, reported by Oliver
Diffstat (limited to 'package/brutefir/patches/patch-emalloc_c')
-rw-r--r-- | package/brutefir/patches/patch-emalloc_c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/brutefir/patches/patch-emalloc_c b/package/brutefir/patches/patch-emalloc_c new file mode 100644 index 000000000..a6b40f04a --- /dev/null +++ b/package/brutefir/patches/patch-emalloc_c @@ -0,0 +1,11 @@ +--- brutefir-1.0o.orig/emalloc.c 2016-11-15 13:39:48.000000000 +0100 ++++ brutefir-1.0o/emalloc.c 2017-03-17 19:15:58.601456985 +0100 +@@ -75,7 +75,7 @@ emallocaligned(size_t size) + } + check_avail(size); + #if defined(__OS_LINUX__) +-#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 3) ++#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 3) && !__UCLIBC__ + /* use old memalign, posix_memalign may be buggy in these glibc versions */ + p = memalign(ALIGNMENT, size < ALIGNMENT ? ALIGNMENT : size); + err = !p; |