aboutsummaryrefslogtreecommitdiff
path: root/src/mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbox.c')
-rw-r--r--src/mbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbox.c b/src/mbox.c
index 05efa69f..6742069a 100644
--- a/src/mbox.c
+++ b/src/mbox.c
@@ -257,6 +257,7 @@ gint proc_mbox(FolderItem *dest, const gchar *mbox, GHashTable *folder_table)
gint lock_mbox(const gchar *base, LockType type)
{
+#ifdef G_OS_UNIX
gint retval = 0;
if (type == LOCK_FILE) {
@@ -327,6 +328,9 @@ gint lock_mbox(const gchar *base, LockType type)
}
return retval;
+#else
+ return -1;
+#endif /* G_OS_UNIX */
}
gint unlock_mbox(const gchar *base, gint fd, LockType type)