[arch-commits] Commit in samba/trunk (readline-6.3.patch)

Tobias Powalowski tpowa at nymeria.archlinux.org
Sat Mar 15 11:55:16 UTC 2014


    Date: Saturday, March 15, 2014 @ 12:55:16
  Author: tpowa
Revision: 207949

Added:
  samba/trunk/readline-6.3.patch

--------------------+
 readline-6.3.patch |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Added: readline-6.3.patch
===================================================================
--- readline-6.3.patch	                        (rev 0)
+++ readline-6.3.patch	2014-03-15 11:55:16 UTC (rev 207949)
@@ -0,0 +1,26 @@
+Function, CPFunction, CPPFunction and VFunction typedefs are considered
+old-style (deprecated) starting from readline 4.2.
+Compatibility typedefs have been in place up to readline 6.2 but were
+removed with the 6.3 release thus causing builds to break.
+Swtich to the new-style specific prototyped typedef.
+
+Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
+---
+ libcli/smbreadline/smbreadline.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libcli/smbreadline/smbreadline.c b/libcli/smbreadline/smbreadline.c
+index cff25a7..80e10b0 100644
+--- a/libcli/smbreadline/smbreadline.c
++++ b/libcli/smbreadline/smbreadline.c
+@@ -141,7 +141,7 @@ char *smb_readline(const char *prompt, void (*callback)(void),
+ 
+ #if HAVE_DECL_RL_EVENT_HOOK
+ 	if (callback)
+-		rl_event_hook = (Function *)callback;
++		rl_event_hook = (rl_hook_func_t *)callback;
+ #endif
+ 	ret = readline(prompt);
+ 	if (ret && *ret)
+-- 
+1.8.3.2




More information about the arch-commits mailing list