summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-11-04 20:45:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-11-04 20:45:29 (GMT)
commitb37509b11b34fb4b2045162b88d4fa110cd4692b (patch)
tree7b5935107851c32929481d3f4e1e3997bdb53e82 /Modules/readline.c
parenta18424c624b5720bce542d306b464660675751b0 (diff)
downloadcpython-b37509b11b34fb4b2045162b88d4fa110cd4692b.zip
cpython-b37509b11b34fb4b2045162b88d4fa110cd4692b.tar.gz
cpython-b37509b11b34fb4b2045162b88d4fa110cd4692b.tar.bz2
Merged revisions 67098 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r67098 | martin.v.loewis | 2008-11-04 21:40:09 +0100 (Di, 04 Nov 2008) | 2 lines Issue #4204: Fixed module build errors on FreeBSD 4. ........
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 8371942..22f3dc0 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -35,7 +35,11 @@
#define completion_matches(x, y) \
rl_completion_matches((x), ((rl_compentry_func_t *)(y)))
#else
+#if defined(_RL_FUNCTION_TYPEDEF)
extern char **completion_matches(char *, rl_compentry_func_t *);
+#else
+extern char **completion_matches(char *, CPFunction *);
+#endif
#endif
static void
@@ -213,7 +217,11 @@ set_completion_display_matches_hook(PyObject *self, PyObject *args)
default completion display. */
rl_completion_display_matches_hook =
completion_display_matches_hook ?
+#if defined(_RL_FUNCTION_TYPEDEF)
(rl_compdisp_func_t *)on_completion_display_matches_hook : 0;
+#else
+ (VFunction *)on_completion_display_matches_hook : 0;
+#endif
#endif
return result;