]> git.tdb.fi Git - builder.git/blobdiff - source/copy.cpp
Basic support for running builder on Windows
[builder.git] / source / copy.cpp
index 2d2a7ca9c023c557954e05924d9181f4280dae97..6a2de247c9ac6ba8d6365be128b81252090cc13e 100644 (file)
@@ -65,6 +65,7 @@ void Copy::Worker::main()
                return;
        }
 
+#ifndef _WIN32
        // Preserve file permissions
        struct stat st;
        if(stat(src_path.str().c_str(), &st)==0)
@@ -78,6 +79,7 @@ void Copy::Worker::main()
                        FS::unlink(link);
                symlink(relpath.str().c_str(), link.str().c_str());
        }
+#endif
 
        status = Task::SUCCESS;
 }