[PATCH] lib: fix build on !HAVE_XAPIAN_COMPACT

Subject: [PATCH] lib: fix build on !HAVE_XAPIAN_COMPACT

Date: Mon, 28 Oct 2013 15:09:19 +0100

To: notmuch@notmuchmail.org

Cc:

From: Jani Nikula


Minimal change to build notmuch against xapian that doesn't have
compaction support.
---
 lib/database.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/database.cc b/lib/database.cc
index 06f1c0a..20e5ec2 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;
-- 
1.7.2.5


Thread: