patch-emalloc_c 543 B

1234567891011
  1. --- brutefir-1.0o.orig/emalloc.c 2016-11-15 13:39:48.000000000 +0100
  2. +++ brutefir-1.0o/emalloc.c 2017-03-17 19:15:58.601456985 +0100
  3. @@ -75,7 +75,7 @@ emallocaligned(size_t size)
  4. }
  5. check_avail(size);
  6. #if defined(__OS_LINUX__)
  7. -#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 3)
  8. +#if (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 3) && !__UCLIBC__
  9. /* use old memalign, posix_memalign may be buggy in these glibc versions */
  10. p = memalign(ALIGNMENT, size < ALIGNMENT ? ALIGNMENT : size);
  11. err = !p;