summaryrefslogtreecommitdiff
path: root/app-text/ttf2pt1/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-15 11:48:08 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-15 11:48:08 +0100
commit04fc7f10cec12efb1240344a0090b539e24ad0f3 (patch)
tree130fb059a6b83e95af28b97b0f55c716d48924bf /app-text/ttf2pt1/files
parent0bec4ab1937eed98ee24e2d48f0cfec46de2fc58 (diff)
gentoo auto-resync : 15:04:2023 - 11:48:08
Diffstat (limited to 'app-text/ttf2pt1/files')
-rw-r--r--app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch
new file mode 100644
index 000000000000..cb54195872e9
--- /dev/null
+++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch
@@ -0,0 +1,61 @@
+https://sourceforge.net/p/ttf2pt1/mailman/message/37804025/
+https://bugs.gentoo.org/881321
+
+Avoid implicit ints and implicit function declarations, and build
+failures with future compilers which do not support this pre-C99
+features by default.
+
+--- a/other/bmpfont.h
++++ b/other/bmpfont.h
+@@ -2,7 +2,9 @@
+ * see COPYRIGHT
+ */
+
++#include <stdlib.h>
+
++void
+ fchkneg(file, line, rc, cmd)
+ char *file;
+ int line;
+@@ -17,6 +19,7 @@ fchkneg(file, line, rc, cmd)
+ }
+ }
+
++void
+ fchknull(file, line, rc, cmd)
+ char *file;
+ int line;
+--- a/other/cmpf.c
++++ b/other/cmpf.c
+@@ -14,7 +14,7 @@
+
+ #include "bmpfont.h"
+
+-
++int
+ main(ac, av)
+ int ac;
+ char **av;
+--- a/other/dmpf.c
++++ b/other/dmpf.c
+@@ -14,7 +14,7 @@
+
+ #include "bmpfont.h"
+
+-
++int
+ main(ac, av)
+ int ac;
+ char **av;
+--- a/t1asm.c
++++ b/t1asm.c
+@@ -59,6 +59,8 @@ static char portnotice[] =
+ # define WINDOWS_FUNCTIONS
+ # include "windows.h"
+ # endif
++#else
++# include <unistd.h>
+ #endif
+
+ /* int32 must be at least 32-bit and uint16 must be at least 16-bit */
+