summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupquery/bbackupquery.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bbackupquery/bbackupquery.cpp b/bin/bbackupquery/bbackupquery.cpp
index 6d697087..f004310c 100644
--- a/bin/bbackupquery/bbackupquery.cpp
+++ b/bin/bbackupquery/bbackupquery.cpp
@@ -132,7 +132,12 @@ char ** bbackupquery_completion(const char *text, int start, int end)
*/
if (start == 0)
{
- matches = rl_completion_matches(text, command_generator);
+ #ifdef HAVE_RL_COMPLETION_MATCHES
+ matches = rl_completion_matches(text,
+ command_generator);
+ #elif defined HAVE_COMPLETION_MATCHES
+ matches = completion_matches(text, command_generator);
+ #endif
}
return matches;