summaryrefslogtreecommitdiff
path: root/editors/gate/files/patch-line.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-05-13 19:01:27 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-05-13 19:01:27 +0000
commit554d4fd2daeceb762238bc49ad43b337b017e4d0 (patch)
tree4416eeb4d00e522533bea4ac4d43e5f71c4a30f5 /editors/gate/files/patch-line.c
parentPrevent collision with dprintf(3) (diff)
Prevent collision with getline(3)
Notes
Notes: svn path=/head/; revision=415135
Diffstat (limited to 'editors/gate/files/patch-line.c')
-rw-r--r--editors/gate/files/patch-line.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/gate/files/patch-line.c b/editors/gate/files/patch-line.c
new file mode 100644
index 000000000000..c36f28220fe7
--- /dev/null
+++ b/editors/gate/files/patch-line.c
@@ -0,0 +1,11 @@
+--- line.c.orig 2003-06-19 15:06:54 UTC
++++ line.c
+@@ -82,7 +82,7 @@ void mcursor(int *col, int *lin, char ch
+ * If <wbuf> is NULL, then this does a more ordinary, wrapless read.
+ */
+
+-int getline(char *buf, char *wbuf, int *wcol, char *prompt)
++int get_line(char *buf, char *wbuf, int *wcol, char *prompt)
+ {
+ int linemode= (wbuf == NULL); /* reading single line, not file */
+ int wrapon= !linemode; /* is line wrap enabled? */