aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Headers/ppc_wrappers/tmmintrin.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Headers/ppc_wrappers/tmmintrin.h')
-rw-r--r--clang/lib/Headers/ppc_wrappers/tmmintrin.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Headers/ppc_wrappers/tmmintrin.h b/clang/lib/Headers/ppc_wrappers/tmmintrin.h
index b5a935d5e47e..ebef7b8192d7 100644
--- a/clang/lib/Headers/ppc_wrappers/tmmintrin.h
+++ b/clang/lib/Headers/ppc_wrappers/tmmintrin.h
@@ -25,7 +25,7 @@
#ifndef TMMINTRIN_H_
#define TMMINTRIN_H_
-#if defined(__linux__) && defined(__ppc64__)
+#if defined(__ppc64__) && (defined(__linux__) || defined(__FreeBSD__))
#include <altivec.h>
@@ -490,6 +490,7 @@ _mm_mulhrs_pi16 (__m64 __A, __m64 __B)
#else
#include_next <tmmintrin.h>
-#endif /* defined(__linux__) && defined(__ppc64__) */
+#endif /* defined(__ppc64__) && (defined(__linux__) || defined(__FreeBSD__)) \
+ */
#endif /* TMMINTRIN_H_ */