math/clrng: fix build on powerpc64 elfv2

clang doesn't have ppu_intrinsics.h.

PR:		243036
Approved by:	jmd (maintainer)
This commit is contained in:
Piotr Kubaj 2020-01-04 20:14:11 +00:00
parent aa29839785
commit 21819b5e53
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=522053

View file

@ -0,0 +1,11 @@
--- src/cl/include/private/Random123/features/gccfeatures.h.orig 2020-01-02 12:50:28 UTC
+++ src/cl/include/private/Random123/features/gccfeatures.h
@@ -44,7 +44,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O
Please let the authors know of any successes (or failures). */
#endif
-#ifdef __powerpc__
+#if defined(__powerpc__) && !defined(__clang__)
#include <ppu_intrinsics.h>
#endif