From 4b8b53e77617f154a25e3c09e98b4e47c58bcd01 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Mon, 1 Jan 2024 16:08:50 +0100 Subject: [PATCH] fix build for windows found with "make buildall", it was broken since the change for reusable components. --- mox-/forkexec_windows.go | 2 +- moxio/syncdir_windows.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mox-/forkexec_windows.go b/mox-/forkexec_windows.go index 895372f..b690cc1 100644 --- a/mox-/forkexec_windows.go +++ b/mox-/forkexec_windows.go @@ -5,5 +5,5 @@ package mox // Not implemented yet on windows. Would need to understand its security model // first. func ForkExecUnprivileged() { - xlog.Fatal("fork and exec to unprivileged user not yet implemented on windows") + pkglog.Fatal("fork and exec to unprivileged user not yet implemented on windows") } diff --git a/moxio/syncdir_windows.go b/moxio/syncdir_windows.go index 4d01d93..30e04ee 100644 --- a/moxio/syncdir_windows.go +++ b/moxio/syncdir_windows.go @@ -1,8 +1,12 @@ package moxio +import ( + "github.com/mjl-/mox/mlog" +) + // SyncDir opens a directory and syncs its contents to disk. // SyncDir is a no-op on Windows. -func SyncDir(dir string) error { +func SyncDir(log mlog.Log, dir string) error { // todo: how to sync a directory on windows? return nil }