aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2015-07-21 05:03:37 +0800
committerhrs <hrs@FreeBSD.org>2015-07-21 05:03:37 +0800
commit2d080c7d403514b2bdb1ea6a125f076c9476460f (patch)
treeb77e4ea3e184eb6308ae065162b845d0aece5f0f /print
parent1b4d70b342cbb725fa80a2054b8dd7a2aed13ae3 (diff)
downloadfreebsd-ports-gnome-2d080c7d403514b2bdb1ea6a125f076c9476460f.tar.gz
freebsd-ports-gnome-2d080c7d403514b2bdb1ea6a125f076c9476460f.tar.zst
freebsd-ports-gnome-2d080c7d403514b2bdb1ea6a125f076c9476460f.zip
Fix build with GCC. GCC does now allow const type qualifier for
function return type if it is a non-pointer. This fixes a build error on 8.x. Spotted by: kib
Diffstat (limited to 'print')
-rw-r--r--print/ghostscript9-agpl/files/patch-trio-triop.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/print/ghostscript9-agpl/files/patch-trio-triop.h b/print/ghostscript9-agpl/files/patch-trio-triop.h
new file mode 100644
index 000000000000..795b3299e564
--- /dev/null
+++ b/print/ghostscript9-agpl/files/patch-trio-triop.h
@@ -0,0 +1,14 @@
+--- trio/triop.h.orig 2015-03-30 17:21:24.000000000 +0900
++++ trio/triop.h 2015-07-21 06:00:48.713329000 +0900
+@@ -404,7 +404,11 @@
+ void trio_unregister TRIO_PROTO((trio_pointer_t handle));
+
+ TRIO_CONST char *trio_get_format TRIO_PROTO((trio_pointer_t ref));
++#if !defined(__llvm__)
++trio_pointer_t trio_get_argument TRIO_PROTO((trio_pointer_t ref));
++#else
+ TRIO_CONST trio_pointer_t trio_get_argument TRIO_PROTO((trio_pointer_t ref));
++#endif
+
+ /* Modifiers */
+ int trio_get_width TRIO_PROTO((trio_pointer_t ref));