summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/bbackupquery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bbackupquery/bbackupquery.cpp')
-rw-r--r--bin/bbackupquery/bbackupquery.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/bbackupquery/bbackupquery.cpp b/bin/bbackupquery/bbackupquery.cpp
index 27f3109f..7726f429 100644
--- a/bin/bbackupquery/bbackupquery.cpp
+++ b/bin/bbackupquery/bbackupquery.cpp
@@ -213,6 +213,8 @@ int main(int argc, const char *argv[])
#elif defined HAVE_LIBREADLINE // && !WIN32
const char* validOpts = "qvVwEc:l:o:O:W:";
bool useReadline = true;
+#else
+ const char* validOpts = "qvVwc:l:o:O:W:";
#endif
std::string fileLogFile;
@@ -458,6 +460,7 @@ int main(int argc, const char *argv[])
if (false)
{
#endif
+ #ifdef HAVE_LIBREADLINE
// Must initialise the locale before using editline's
// readline(), otherwise cannot enter international characters.
if (setlocale(LC_ALL, "") == NULL)
@@ -509,6 +512,7 @@ int main(int argc, const char *argv[])
free(last_cmd);
last_cmd = 0;
#endif
+ #endif // HAVE_READLINE
}
else // !HAVE_LIBREADLINE || !useReadline
{