Source: blender
Version: 2.70a-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

blender does not compile on GNU/Hurd [1].

The problem is the missing handling for malloc_usable_size in
intern/guardedalloc/intern/mallocn_intern.h, much like as it was
reported in #748322. Unfortunately, that bug has been fixed only for
kFreeBSD...

Attached there is a patch, which *replaces* the existing patch
0013-fix_FTBFS_on_kFreeBSD.patch, which fixes the build on any
glibc-based OS. It has been build-tested on kFreeBSD and Hurd.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=blender&arch=hurd-i386&ver=2.70a-1&stamp=1400508629

Thanks,
-- 
Pino
--- a/intern/guardedalloc/intern/mallocn_intern.h
+++ b/intern/guardedalloc/intern/mallocn_intern.h
@@ -51,7 +51,7 @@
 
 #undef HAVE_MALLOC_STATS
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GLIBC__)
 #  include <malloc.h>
 #  define HAVE_MALLOC_STATS
 #elif defined(__FreeBSD__)

Reply via email to