components/gnome/yelp/patches/03-sparc.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Tue, 23 Aug 2016 11:48:13 -0700
changeset 6671 ff9eef4eda6b
permissions -rw-r--r--
23245363 Move yelp to Userland and update to 3.18.0 PSARC/2016/288 Gnome 3 documentation

casting to fix the build error on sparc - restricing it to sparc for now
since x86 builds and runs fine as is.

Potentially find a better fix

--- yelp-3.18.0/libyelp/yelp-man-parser.c	2016-08-22 15:22:25.739238800 -0700
+++ yelp-3.18.0/libyelp/yelp-man-parser.c	2016-08-22 15:23:37.092255584 -0700
@@ -1362,8 +1362,13 @@
     g_regex_match_full (regex, accumulator->str,
                         -1, offset, 0, &match_info, NULL);
     while (g_match_info_matches (match_info)) {
-        offset = inserter ((offset_elt_pair *)pairs->data,
+#if defined(__sparc)
+        offset = inserter ((offset_elt_pair *)(void *)pairs->data,
                            match_info);
+#else
+	offset = inserter ((offset_elt_pair *)pairs->data,
+                           match_info);
+#endif
 
         g_match_info_free (match_info);