Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h.

The device config.h is a good cleanup; the host side doesn't work
as well because of Mac OS, but it's no worse than the existing Mac OS
hacks.

Change-Id: I7a9dc089f03ae992c7463866a8b6c383ba0437e3
diff --git a/device/include/llvm/Config/config.h b/device/include/llvm/Config/config.h
index ac58972..1798b90 100644
--- a/device/include/llvm/Config/config.h
+++ b/device/include/llvm/Config/config.h
@@ -239,7 +239,7 @@
 #define HAVE_MALLINFO 1
 
 /* Define to 1 if you have the <malloc.h> header file. */
-//#define HAVE_MALLOC_H 1 /* Defined by AndroidConfig.h */
+#define HAVE_MALLOC_H 1
 
 /* Define to 1 if you have the <malloc/malloc.h> header file. */
 /* #undef HAVE_MALLOC_MALLOC_H */
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h
index cb3d4a3..a1978a8 100644
--- a/host/include/llvm/Config/config.h
+++ b/host/include/llvm/Config/config.h
@@ -252,7 +252,11 @@
 #endif
 
 /* Define to 1 if you have the <malloc.h> header file. */
-/* #define HAVE_MALLOC_H 1 */ /* Defined by AndroidConfig.h */
+#if !defined(__APPLE__)
+#define HAVE_MALLOC_H 1
+#else
+/* #undef HAVE_MALLOC_H */
+#endif
 
 /* Define to 1 if you have the <malloc/malloc.h> header file. */
 /* #undef HAVE_MALLOC_MALLOC_H */