[PATCH] lib: fix build on !HAVE_XAPIAN_COMPACT

Tomi Ollila tomi.ollila at iki.fi
Mon Oct 28 08:31:44 PDT 2013


On Mon, Oct 28 2013, Jani Nikula <jani at nikula.org> wrote:

> Minimal change to build notmuch against xapian that doesn't have
> compaction support.
> ---

LGTM.

Tomi


>  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
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list