aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Headers/ppc_wrappers/mm_malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Headers/ppc_wrappers/mm_malloc.h')
-rw-r--r--lib/Headers/ppc_wrappers/mm_malloc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Headers/ppc_wrappers/mm_malloc.h b/lib/Headers/ppc_wrappers/mm_malloc.h
index d91d7865c893..24b14c8e07c0 100644
--- a/lib/Headers/ppc_wrappers/mm_malloc.h
+++ b/lib/Headers/ppc_wrappers/mm_malloc.h
@@ -10,6 +10,8 @@
#ifndef _MM_MALLOC_H_INCLUDED
#define _MM_MALLOC_H_INCLUDED
+#if defined(__linux__) && defined(__ppc64__)
+
#include <stdlib.h>
/* We can't depend on <stdlib.h> since the prototype of posix_memalign
@@ -41,4 +43,8 @@ _mm_free (void * ptr)
free (ptr);
}
+#else
+#include_next <mm_malloc.h>
+#endif
+
#endif /* _MM_MALLOC_H_INCLUDED */