[PATCH] lib: fix build on !HAVE_XAPIAN_COMPACT

Jani Nikula jani at nikula.org
Mon Oct 28 07:09:19 PDT 2013


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



More information about the notmuch mailing list