X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=remote%2Fsync%2Ffiles.go;h=507cc174010bdb68ba0d478d07001fe5b66167d2;hb=8620dac1f9ee7f73058e3e97b488ec0c710a89df;hp=e110b526011f577815ecbb9660a792f104743bef;hpb=1fba102ea14d034cb0ad0909ce11325be4ce82b0;p=safcm%2Fsafcm.git diff --git a/remote/sync/files.go b/remote/sync/files.go index e110b52..507cc17 100644 --- a/remote/sync/files.go +++ b/remote/sync/files.go @@ -15,6 +15,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +//go:build !windows // +build !windows package sync @@ -324,7 +325,7 @@ reopen: err := unix.Unlinkat(parentFd, baseName, 0) if err != nil && !os.IsNotExist(err) { err2 := unix.Unlinkat(parentFd, baseName, - AT_REMOVEDIR) + unix.AT_REMOVEDIR) if err2 != nil && !os.IsNotExist(err2) { // See src/os/file_unix.go in Go's sources if err2 == unix.ENOTDIR {