diff -u -p -r1.5 mboxfs.c
--- a/mboxfs/mboxfs.c	8 Jul 2013 09:01:52 -0000	1.5
+++ b/mboxfs/mboxfs.c	1 Aug 2020 16:19:52 -0000
@@ -494,8 +494,8 @@ mboxfs_add_header (HEADER *hdr)
   return 0;
 }
 
-static void
-read_mbox ()
+static void *
+read_mbox (void *foo)
 {
   if (mbox_open_mailbox (&main_context) != 0)
     error (1, 0, "Provided mailbox could not be parsed (%s, type %s).",
@@ -565,9 +565,12 @@ mboxfs_init (struct node **root)
   
   /* Load the mailbox. */
   if (mboxfs_options.threaded)
-    cthread_fork ((cthread_fn_t) read_mbox, NULL);
+    {
+      pthread_t t;
+      pthread_create (&t, NULL, read_mbox, NULL);
+    }
   else
-    read_mbox ();
+    read_mbox (NULL);
 
   return 0;
 }
