Add tokyocabinet support
[apps/madmutt.git] / lib-lua / madmutt.cpkg
index f134c75..b47a867 100644 (file)
@@ -24,7 +24,7 @@
 #include <pwd.h>
 
 #include <lib-lua/lib-lua.h>
-#include <lib-ui/curses.h>
+#include <lib-ui/lib-ui.h>
 #include <lib-sys/unix.h>
 
 #include "../mutt.h"
@@ -113,7 +113,9 @@ static void madmutt_update_cachedir(const char *dir)
 }
 
 
-#if defined(HAVE_QDBM)
+#if defined(HAVE_TOKYOCABINET)
+#  define HCACHE_BACKEND  "tokyocabinet"
+#elif defined(HAVE_QDBM)
 #  define HCACHE_BACKEND  "qdbm"
 #elif defined(HAVE_GDBM)
 #  define HCACHE_BACKEND  "gdbm"
@@ -161,12 +163,6 @@ static void mod_core_init2(void)
      */
     const string_t hcache_backend = HCACHE_BACKEND;
 
-    /*
-     ** .pp
-     ** Contains the path of the \fTmadmutt_dotlock(1)\fP binary to be used by
-     ** Madmutt.
-     */
-    path_t dotlock        = m_strdup(BINDIR "/mutt_dotlock");
     /*
      ** .pp
      ** This variable specifies which editor is used by Madmutt.