summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/gc.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index dc0b078e52..42b862aac2 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -108,6 +108,10 @@ static AutoCloseFD fdTempRoots;
 
 void addTempRoot(const Path & path)
 {
+#ifdef __CYGWIN__
+    return;
+#endif	
+    
     /* Create the temporary roots file for this process. */
     if (fdTempRoots == -1) {
 
@@ -172,6 +176,10 @@ typedef list<FDPtr> FDs;
 
 static void readTempRoots(PathSet & tempRoots, FDs & fds)
 {
+#ifdef __CYGWIN__
+    return;
+#endif
+    
     /* Read the `temproots' directory for per-process temporary root
        files. */
     Strings tempRootFiles = readDirectory(