File intrin-arch.patch of Package python-autobahn

Index: autobahn-23.6.2/autobahn/nvx/_utf8validator.c
===================================================================
--- autobahn-23.6.2.orig/autobahn/nvx/_utf8validator.c
+++ autobahn-23.6.2/autobahn/nvx/_utf8validator.c
@@ -27,10 +27,14 @@
 #include <stdlib.h>
 #include <stdint.h>
 
+#ifdef __s390__
+#include <s390intrin.h>
+#else
 // http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
 #if defined(__SSE2__) || defined(__SSE4_1__)
 #include <x86intrin.h>
 #endif
+#endif
 
 
 #define UTF8_ACCEPT 0
openSUSE Build Service is sponsored by