aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mdk
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-07-06 05:49:04 +0800
committermarino <marino@FreeBSD.org>2014-07-06 05:49:04 +0800
commit7c49aa0ccca5fba04f5bf87d06f9975a457d8446 (patch)
treede56f84ecef1991d37c4e684ad8b0e485d7f0f95 /lang/mdk
parentee28f003b0f376e3bb758382457f68eb4e1b0a4c (diff)
downloadfreebsd-ports-gnome-7c49aa0ccca5fba04f5bf87d06f9975a457d8446.tar.gz
freebsd-ports-gnome-7c49aa0ccca5fba04f5bf87d06f9975a457d8446.tar.zst
freebsd-ports-gnome-7c49aa0ccca5fba04f5bf87d06f9975a457d8446.zip
lang/mdk: Fix support for ports readline (dports)
Diffstat (limited to 'lang/mdk')
-rw-r--r--lang/mdk/files/patch-mixutils_mixvm__command.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/mdk/files/patch-mixutils_mixvm__command.c b/lang/mdk/files/patch-mixutils_mixvm__command.c
new file mode 100644
index 000000000000..ab1664a9e8f6
--- /dev/null
+++ b/lang/mdk/files/patch-mixutils_mixvm__command.c
@@ -0,0 +1,20 @@
+--- mixutils/mixvm_command.c.orig 2008-03-20 13:44:32.000000000 +0000
++++ mixutils/mixvm_command.c
+@@ -80,7 +80,7 @@ mix_vm_command_info_t commands[] = {
+ { "prompt", cmd_prompt_, N_("Set command prompt"), "prompt PROMPT" },
+ { "shell", cmd_shell_, N_("Execute shell command"), "shell COMMAND" },
+ { "quit", cmd_quit_, N_("Quit the program"), "quit" },
+- { (char *)NULL, (Function *)NULL, (char *)NULL }
++ { (char *)NULL, (rl_hook_func_t *)NULL, (char *)NULL }
+ };
+
+
+@@ -217,7 +217,7 @@ mixvm_cmd_init (mix_config_t *config, ch
+
+ #ifdef HAVE_LIBREADLINE
+ /* Tell the completer that we want a crack first. */
+- rl_attempted_completion_function = (CPPFunction *)mixvm_cmd_completion_;
++ rl_attempted_completion_function = (rl_completion_func_t *)mixvm_cmd_completion_;
+ #endif /* HAVE_LIBREADLINE */
+
+ /* initialise the dispatcher */