summaryrefslogtreecommitdiff
path: root/sysutils/44bsd-more/files/patch-main.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2007-06-22 06:53:11 +0000
committerXin LI <delphij@FreeBSD.org>2007-06-22 06:53:11 +0000
commitd6a6f8552aaee8bda1b0a5217f6fc05f757d3f14 (patch)
tree1e9e9e89ae166ce2372bbe36a16b5155dd7e5bed /sysutils/44bsd-more/files/patch-main.c
parent- Add missing dependency when ID3TAG knob is on (diff)
Unbreak for gcc 4.2.
Approved by: maintainer timeout PR: ports/112847
Notes
Notes: svn path=/head/; revision=194041
Diffstat (limited to 'sysutils/44bsd-more/files/patch-main.c')
-rw-r--r--sysutils/44bsd-more/files/patch-main.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/sysutils/44bsd-more/files/patch-main.c b/sysutils/44bsd-more/files/patch-main.c
index 3e000dad57d9..00662f7f75d1 100644
--- a/sysutils/44bsd-more/files/patch-main.c
+++ b/sysutils/44bsd-more/files/patch-main.c
@@ -1,5 +1,5 @@
---- main.c.orig Tue Aug 5 17:17:15 2003
-+++ main.c Tue Aug 5 17:21:34 2003
+--- ./main.c.orig 2007-06-22 14:48:44.602177005 +0800
++++ ./main.c 2007-06-22 14:48:44.620758150 +0800
@@ -33,9 +33,9 @@
*/
@@ -12,3 +12,20 @@
Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
+@@ -68,6 +68,8 @@
+ #include "less.h"
+ #include "pathnames.h"
+
++static int str_read(void *, char *, size_t);
++
+ int ispipe;
+ char *current_file, *previous_file, *current_name, *next_name;
+ int any_display;
+@@ -410,7 +412,6 @@
+ char *c;
+ int readrc();
+ int savederrno;
+- static int str_read();
+
+ /* The default builtin rc file */
+ if ((c = getenv("HOME")) &&