forked from pool/python-autobahn
use s390intrin.h instead of x86intrin.h on s390 OBS-URL: https://build.opensuse.org/request/show/822555 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=37
18 lines
478 B
Diff
18 lines
478 B
Diff
Index: autobahn-20.7.1/autobahn/nvx/_utf8validator.c
|
|
===================================================================
|
|
--- autobahn-20.7.1.orig/autobahn/nvx/_utf8validator.c
|
|
+++ autobahn-20.7.1/autobahn/nvx/_utf8validator.c
|
|
@@ -27,8 +27,12 @@
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
|
|
+#ifdef __s390__
|
|
+#include <s390intrin.h>
|
|
+#else
|
|
// http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics
|
|
#include <x86intrin.h>
|
|
+#endif
|
|
|
|
|
|
#define UTF8_ACCEPT 0
|