]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/sync/files.go
go fmt
[safcm/safcm.git] / remote / sync / files.go
index e110b526011f577815ecbb9660a792f104743bef..507cc174010bdb68ba0d478d07001fe5b66167d2 100644 (file)
@@ -15,6 +15,7 @@
 // You should have received a copy of the GNU General Public License
 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+//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 {