summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/bbackupquery/CommandCompletion.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/bbackupquery/CommandCompletion.cpp b/bin/bbackupquery/CommandCompletion.cpp
index b69c7427..f7dab973 100644
--- a/bin/bbackupquery/CommandCompletion.cpp
+++ b/bin/bbackupquery/CommandCompletion.cpp
@@ -81,14 +81,16 @@ COMPLETION_FUNCTION(None,)
#define HAVE_A_FILENAME_COMPLETION_FUNCTION 1
#endif
-COMPLETION_FUNCTION(Default,
#ifdef HAVE_A_FILENAME_COMPLETION_FUNCTION
+COMPLETION_FUNCTION(Default,
while (const char *match = RL_FILENAME_COMPLETION_FUNCTION(prefix.c_str(), 0))
{
completions.push_back(match);
}
-#endif // HAVE_A_FILENAME_COMPLETION_FUNCTION
)
+#else // !HAVE_A_FILENAME_COMPLETION_FUNCTION
+COMPLETION_FUNCTION(Default,)
+#endif // HAVE_A_FILENAME_COMPLETION_FUNCTION
COMPLETION_FUNCTION(Command,
int len = prefix.length();