aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/database.cc
diff options
context:
space:
mode:
authorGravatar Jani Nikula <jani@nikula.org>2013-10-28 15:09:19 +0100
committerGravatar David Bremner <bremner@debian.org>2013-10-30 21:16:22 -0300
commit8e4900b8a7dc04eeb0bc57d5e4271034d21db87d (patch)
tree6715fe9659acc4eb1b62313592bab8ad3de4eb11 /lib/database.cc
parent2a26f61421d0783632a420f561853aa0e70b8eb7 (diff)
lib: fix build on !HAVE_XAPIAN_COMPACT
Minimal change to build notmuch against xapian that doesn't have compaction support.
Diffstat (limited to 'lib/database.cc')
-rw-r--r--lib/database.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/database.cc b/lib/database.cc
index 06f1c0a1..20e5ec23 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -944,7 +944,9 @@ DONE:
}
#else
notmuch_status_t
-notmuch_database_compact_close (unused (notmuch_database_t *notmuch))
+notmuch_database_compact (unused (const char* path),
+ unused (const char* backup_path),
+ unused (notmuch_compact_status_cb_t status_cb))
{
fprintf (stderr, "notmuch was compiled against a xapian version lacking compaction support.\n");
return NOTMUCH_STATUS_UNSUPPORTED_OPERATION;