lib: fix build on !HAVE_XAPIAN_COMPACT

Minimal change to build notmuch against xapian that doesn't have
compaction support.
This commit is contained in:
Jani Nikula 2013-10-28 15:09:19 +01:00 committed by David Bremner
parent 2a26f61421
commit 8e4900b8a7

View file

@ -944,7 +944,9 @@ DONE:
} }
#else #else
notmuch_status_t 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"); fprintf (stderr, "notmuch was compiled against a xapian version lacking compaction support.\n");
return NOTMUCH_STATUS_UNSUPPORTED_OPERATION; return NOTMUCH_STATUS_UNSUPPORTED_OPERATION;