summaryrefslogtreecommitdiff
path: root/server/src/macrotool/export.cc
diff options
context:
space:
mode:
authordeva <deva>2011-02-04 07:58:02 +0000
committerdeva <deva>2011-02-04 07:58:02 +0000
commit08ee04e6bfa31a1edf823ab27e2519be17c2f633 (patch)
tree939ce7e6508a94c9593b034c4e296af04b8c5fa3 /server/src/macrotool/export.cc
parentbfe5d3000182cb10db583fe42ffa7b48f84d8b5b (diff)
Made export and sunlock compile when no db is to be used.
Diffstat (limited to 'server/src/macrotool/export.cc')
-rw-r--r--server/src/macrotool/export.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/src/macrotool/export.cc b/server/src/macrotool/export.cc
index 2c3eb05..f42cd34 100644
--- a/server/src/macrotool/export.cc
+++ b/server/src/macrotool/export.cc
@@ -27,11 +27,15 @@
*/
#include "export.h"
+#include <config.h>
#include <stdio.h>
+#include "debug.h"
+
+#ifndef WITHOUT_DB
+
#include <stdlib.h>
#include <pqxx/pqxx>
-#include "debug.h"
#include "fieldnamescanner.h"
#include "configuration.h"
@@ -254,6 +258,8 @@ static void export_prefix(std::string prefix)
}
}
+#endif/* WITHOUT_DB */
+
static const char usage_str[] =
" help Prints this helptext.\n"
" prefix p Export all templates matching the prefix p.\n"
@@ -274,7 +280,9 @@ void macrotool_export(std::vector<std::string> params)
printf("%s", usage_str);
return;
}
+#ifndef WITHOUT_DB
export_prefix(params[1]);
+#endif/* WITHOUT_DB */
return;
}