File jack-sparcv9.diff of Package jack

Without this, there is a link error on SPARC.

---
 linux/cycles.h |   10 ++++++++++
 1 file changed, 10 insertions(+)

Index: jack-1.9.5.4046/linux/cycles.h
===================================================================
--- jack-1.9.5.4046.orig/linux/cycles.h
+++ jack-1.9.5.4046/linux/cycles.h
@@ -63,6 +63,16 @@ static inline unsigned long long get_cyc
 }
 #endif /* __sparc_v9__ */
 
+#ifdef __sparc_v9__
+/* rd is V9 only */
+static inline unsigned long long get_cycles(void)
+{
+	unsigned long long res;
+	__asm__ __volatile__("rd %%tick, %0" : "=r"(res));
+	return res;
+}
+#endif
+
 #ifdef __PPC__
 
 /* PowerPC */
openSUSE Build Service is sponsored by