--- xbmc-16.0-Jarvis.orig/tools/depends/native/TexturePacker/src/XBTFWriter.cpp	2016-02-20 16:21:19.000000000 +0100
+++ xbmc-16.0-Jarvis/tools/depends/native/TexturePacker/src/XBTFWriter.cpp	2016-04-07 23:19:25.000000000 +0200
@@ -20,11 +20,7 @@
 
 #define __STDC_FORMAT_MACROS
 #include <inttypes.h>
-#if defined(TARGET_FREEBSD) || defined(TARGET_DARWIN)
 #include <stdlib.h>
-#elif !defined(TARGET_DARWIN)
-#include <malloc.h>
-#endif
 #include <memory.h>
 #include <string.h>
 
