svn commit: r392602 - head/print/ghostscript9-agpl/files
Hiroki Sato
hrs at FreeBSD.org
Mon Jul 20 21:03:38 UTC 2015
Author: hrs
Date: Mon Jul 20 21:03:37 2015
New Revision: 392602
URL: https://svnweb.freebsd.org/changeset/ports/392602
Log:
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
Added:
head/print/ghostscript9-agpl/files/patch-trio-triop.h (contents, props changed)
Added: head/print/ghostscript9-agpl/files/patch-trio-triop.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/print/ghostscript9-agpl/files/patch-trio-triop.h Mon Jul 20 21:03:37 2015 (r392602)
@@ -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));
More information about the svn-ports-all
mailing list