aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormadpilot <madpilot@FreeBSD.org>2013-06-14 06:45:37 +0800
committermadpilot <madpilot@FreeBSD.org>2013-06-14 06:45:37 +0800
commit4af5a86149517ca6eee15d9005a1869c32125f5c (patch)
tree23a7f317cfd9f0d6006e317b0aceb5282f029679 /textproc
parent55801c7f0c13d99529ee7a1b1a0f1217eecb5189 (diff)
downloadfreebsd-ports-gnome-4af5a86149517ca6eee15d9005a1869c32125f5c.tar.gz
freebsd-ports-gnome-4af5a86149517ca6eee15d9005a1869c32125f5c.tar.zst
freebsd-ports-gnome-4af5a86149517ca6eee15d9005a1869c32125f5c.zip
Fix build with clang.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/rot/files/patch-rot.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/textproc/rot/files/patch-rot.c b/textproc/rot/files/patch-rot.c
new file mode 100644
index 000000000000..1d0025fa9c54
--- /dev/null
+++ b/textproc/rot/files/patch-rot.c
@@ -0,0 +1,27 @@
+--- rot.c.orig 1989-03-05 02:11:02.000000000 +0100
++++ rot.c 2013-06-14 00:36:58.068387596 +0200
+@@ -244,10 +244,10 @@
+ if (i2 >= 0L)
+ {
+ if (seekinput (sum + z + col, 1) == -1)
+- return;
++ return 0;
+
+ if ((c = getinput()) == EOF)
+- return; /* end of input */
++ return 0; /* end of input */
+
+ if (c == ' ' && !bflag)
+ holdbl++;
+@@ -292,9 +292,9 @@
+ if (i2 > 0L)
+ {
+ if (seekinput (- (sum + z + 2L), 1) == -1)
+- return;
++ return 0;
+ if ((c = getinput()) == EOF)
+- return; /* end of input */
++ return 0; /* end of input */
+
+ if (c == ' ' && !bflag)
+ holdbl++;