From: Jani Nikula Date: Mon, 28 Oct 2013 14:09:19 +0000 (+0100) Subject: lib: fix build on !HAVE_XAPIAN_COMPACT X-Git-Tag: 0.17_rc1~84 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=8e4900b8a7dc04eeb0bc57d5e4271034d21db87d lib: fix build on !HAVE_XAPIAN_COMPACT Minimal change to build notmuch against xapian that doesn't have compaction support. --- 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;