summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/brutefir/Makefile2
-rw-r--r--package/brutefir/patches/patch-emalloc_c11
2 files changed, 12 insertions, 1 deletions
diff --git a/package/brutefir/Makefile b/package/brutefir/Makefile
index ba43b06a4..2f4c79029 100644
--- a/package/brutefir/Makefile
+++ b/package/brutefir/Makefile
@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= brutefir
PKG_VERSION:= 1.0o
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_HASH:= caae4a933b53b55b29d6cb7e2803e20819f31def6d0e4e12f9a48351e6dbbe9f
PKG_DESCR:= convolution engine
PKG_SECTION:= mm/audio
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;