summaryrefslogtreecommitdiff
path: root/devel/libreadline-java/files/patch-src_native_getline.h
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-07-29 22:52:24 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-07-29 22:52:24 +0000
commit77696ea923434036dca49c7a7a66b15b9e96eaa3 (patch)
tree9c2723396be046dda0d258c827a1df8868877f73 /devel/libreadline-java/files/patch-src_native_getline.h
parentAdd 11.0-BETA3 MANIFEST files. (diff)
Prevent collision with getline(3)
While here regenerate the patches
Notes
Notes: svn path=/head/; revision=419271
Diffstat (limited to 'devel/libreadline-java/files/patch-src_native_getline.h')
-rw-r--r--devel/libreadline-java/files/patch-src_native_getline.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/libreadline-java/files/patch-src_native_getline.h b/devel/libreadline-java/files/patch-src_native_getline.h
new file mode 100644
index 000000000000..b892fdec14be
--- /dev/null
+++ b/devel/libreadline-java/files/patch-src_native_getline.h
@@ -0,0 +1,29 @@
+--- src/native/getline.h.orig 2003-01-07 10:14:35 UTC
++++ src/native/getline.h
+@@ -9,7 +9,7 @@
+
+ extern char* rl_readline_name; /* unused by getline */
+ #define add_history(buffer) gl_histadd(buffer)
+-#define readline(buffer) getline(buffer)
++#define readline(buffer) get_line(buffer)
+ #define clear_history() hist_init()
+ #define using_history() hist_init()
+
+@@ -18,7 +18,7 @@ extern char* rl_readline_name;
+
+ typedef size_t (*gl_strwidth_proc)(char *);
+
+-char *getline(char *); /* read a line of input */
++char *get_line(char *); /* read a line of input */
+ void gl_setwidth(int); /* specify width of screen */
+ void gl_histadd(char *); /* adds entries to hist */
+ void gl_strwidth(gl_strwidth_proc); /* to bind gl_strlen */
+@@ -30,7 +30,7 @@ extern int (*gl_tab_hook)(char *, int, i
+
+ #else /* not __STDC__ */
+
+-char *getline();
++char *get_line();
+ void gl_setwidth();
+ void gl_histadd();
+ void gl_strwidth();