termux-packages/disabled-packages/ghostscript/gserrors.h.patch
Grimler91 ae4de1d70b ghostscript: Update to 9.21 and patch to make it build. (#867)
Package builds but doesn't work on device, running gs gives error:
"GPL Ghostscript 9.21: /home/builder/.termux-build/ghostscript/src/psi/interp.c(303): Fatal error -20 in gs_interp_init!"
2017-03-21 23:33:23 +01:00

19 lines
494 B
Diff

--- ./base/gserrors.h 2017-03-16 09:20:11.000000000 +0000
+++ ./base/gserrors.h 2017-03-18 21:02:46.586737629 +0000
@@ -148,14 +148,13 @@
*
*/
-#ifndef __printflike
+/* Redefine cdefs.h's __printflike function: */
#if __GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7
#define __printflike(fmtarg, firstvararg) \
__attribute__((__format__ (__printf__, fmtarg, firstvararg)))
#else
#define __printflike(fmtarg, firstvararg)
#endif
-#endif
const char *gs_errstr(int code);