From 554d4fd2daeceb762238bc49ad43b337b017e4d0 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 13 May 2016 19:01:27 +0000 Subject: Prevent collision with getline(3) --- editors/gate/files/patch-line.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 editors/gate/files/patch-line.c (limited to 'editors/gate/files/patch-line.c') 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 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? */ -- cgit v1.2.3