aboutsummaryrefslogtreecommitdiffstats
path: root/main/spice/fix-non-x86-build.patch
blob: cca3b1cbeb6a1a18493600805e3e214337f08cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru spice-0.12.5.orig/client/utils.h spice-0.12.5/client/utils.h
--- spice-0.12.5.orig/client/utils.h	2014-05-14 14:14:34.000000000 -0300
+++ spice-0.12.5/client/utils.h	2014-12-03 16:49:54.630411626 -0200
@@ -50,9 +50,13 @@
     throw Exception(exption_string, err);                       \
 }
 
+#if defined(__i386__) || defined(__x86_64__)
 #define SPICE_BREAKPOINT() do{                  \
     __asm__ __volatile__ ("int $03");           \
 }while(0)
+#else
+#define SPICE_BREAKPOINT() do {} while (0)
+#endif
 
 template <class T>
 class AutoRef {