aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-05-23 00:55:23 +0800
committerbapt <bapt@FreeBSD.org>2016-05-23 00:55:23 +0800
commit82b4956762c3b021bdfdff1efa61d72f3d81cca3 (patch)
treef49e1542b2ddb318bd6c9d000e6c236bb2b0ab3d /print
parent7da65f06ade461a8303acafc498127050dd592a3 (diff)
downloadfreebsd-ports-gnome-82b4956762c3b021bdfdff1efa61d72f3d81cca3.tar.gz
freebsd-ports-gnome-82b4956762c3b021bdfdff1efa61d72f3d81cca3.tar.zst
freebsd-ports-gnome-82b4956762c3b021bdfdff1efa61d72f3d81cca3.zip
Prevent collision with getline(3)
Diffstat (limited to 'print')
-rw-r--r--print/t1utils/files/patch-t1asm.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/print/t1utils/files/patch-t1asm.c b/print/t1utils/files/patch-t1asm.c
new file mode 100644
index 000000000000..f920b4a38c4a
--- /dev/null
+++ b/print/t1utils/files/patch-t1asm.c
@@ -0,0 +1,29 @@
+--- t1asm.c.orig 2004-01-24 02:28:23 UTC
++++ t1asm.c
+@@ -280,7 +280,7 @@ static int check_line_charstring()
+ the newline is put into line[]. When terminated by '{', the '{' is not put
+ into line[], and the flag start_charstring is set to 1. */
+
+-static void getline()
++static void get_line()
+ {
+ int c;
+ char *p = line;
+@@ -725,7 +725,7 @@ particular purpose.\n");
+ without /Subrs sections and provided a patch. */
+
+ while (!feof(ifp) && !ferror(ifp)) {
+- getline();
++ get_line();
+
+ if (!ever_active) {
+ if (strncmp(line, "currentfile eexec", 17) == 0 && isspace(line[17])) {
+@@ -796,7 +796,7 @@ particular purpose.\n");
+
+ /* There may be additional code. */
+ while (!feof(ifp) && !ferror(ifp)) {
+- getline();
++ get_line();
+ eexec_string(line);
+ }
+