Package: ruby-ffi / 1.0.11debian-5

fix-test-on-sparc Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: guard Solaris-specific SPARC code from non-Solaris hosts
Author: Jurij Smakov <jurij@wooyd.org>
Origin: vendor
Bug-Debian: http://bugs.debian.org/642266

--- ruby-ffi-1.0.11debian.orig/libtest/NumberTest.c
+++ ruby-ffi-1.0.11debian/libtest/NumberTest.c
@@ -23,7 +23,7 @@
 #include <string.h>
 #include <stdint.h>
 
-#ifdef __sparc
+#if defined(__sparc) && defined(__sun__)
     #define fix_mem_access __asm("ta 6")
 #else
     #define fix_mem_access