fix build for windows

found with "make buildall", it was broken since the change for reusable components.
This commit is contained in:
Mechiel Lukkien 2024-01-01 16:08:50 +01:00
parent 3f5823de31
commit 4b8b53e776
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -5,5 +5,5 @@ package mox
// Not implemented yet on windows. Would need to understand its security model // Not implemented yet on windows. Would need to understand its security model
// first. // first.
func ForkExecUnprivileged() { 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")
} }

View file

@ -1,8 +1,12 @@
package moxio package moxio
import (
"github.com/mjl-/mox/mlog"
)
// SyncDir opens a directory and syncs its contents to disk. // SyncDir opens a directory and syncs its contents to disk.
// SyncDir is a no-op on Windows. // 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? // todo: how to sync a directory on windows?
return nil return nil
} }