aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elektra/remove-unneeded-assembly.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-02-07 17:10:34 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-02-07 17:10:34 +0200
commit32c3ea7c918f4083be4b5e27cbed8e28fdf5929e (patch)
treec145af16312a395a891f346af57bdbaf155e8c0a /testing/elektra/remove-unneeded-assembly.patch
parentb5c6c696837ee7d2aea4b7bed443e86e4608300f (diff)
downloadaports-32c3ea7c918f4083be4b5e27cbed8e28fdf5929e.tar.bz2
aports-32c3ea7c918f4083be4b5e27cbed8e28fdf5929e.tar.xz
testing/libelektra: fix build error on non-x86 hw
Diffstat (limited to 'testing/elektra/remove-unneeded-assembly.patch')
-rw-r--r--testing/elektra/remove-unneeded-assembly.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/elektra/remove-unneeded-assembly.patch b/testing/elektra/remove-unneeded-assembly.patch
new file mode 100644
index 0000000000..f9968b67fd
--- /dev/null
+++ b/testing/elektra/remove-unneeded-assembly.patch
@@ -0,0 +1,16 @@
+diff -ru libelektra-0.8.21.orig/tests/ctest/test_meta.c libelektra-0.8.21/tests/ctest/test_meta.c
+--- libelektra-0.8.21.orig/tests/ctest/test_meta.c 2017-12-22 09:33:22.000000000 +0200
++++ libelektra-0.8.21/tests/ctest/test_meta.c 2018-02-07 17:07:39.065186200 +0200
+@@ -339,12 +339,6 @@
+ succeed_if_top (2, "/c");
+ succeed_if_top (3, "/a");
+ }
+-uint64_t rdtsc (void)
+-{
+- unsigned int lo, hi;
+- __asm__ __volatile__("rdtsc" : "=a"(lo), "=d"(hi));
+- return ((uint64_t)hi << 32) | lo;
+-}
+ static void test_top (void)
+ {
+ KeySet * test0 = ksNew (10, keyNew ("/a", KEY_VALUE, "whatever", KEY_END), KS_END);