Index: kdecore/tests/klockfiletest.cpp
===================================================================
--- kdecore/tests/klockfiletest.cpp	(Revision 690958)
+++ kdecore/tests/klockfiletest.cpp	(Arbeitskopie)
@@ -47,11 +47,21 @@
 	QVERIFY(!lockFile->isLocked());
 	QCOMPARE(lockFile->lock(), KLockFile::LockOK);
 	QVERIFY(lockFile->isLocked());
+#ifdef Q_WS_WIN
+	KLockFile *lockFile2 = new KLockFile(QLatin1String(lockName));
+	QVERIFY(!lockFile2->isLocked());
+	QCOMPARE(lockFile2->lock(), KLockFile::LockFail);
+	QVERIFY(!lockFile2->isLocked());
+	delete lockFile2;
+#endif    
 }
 
 void
 Test_KLockFile::testStale()
 {
+#ifdef Q_WS_WIN
+    qDebug("unix stale lock support not implemented yet");
+#else
 	QVERIFY(lockFile->isLocked());
 
 	const int secs = 2;
@@ -72,6 +82,7 @@
 			QCOMPARE(host, QLatin1String(hostname));
 		QCOMPARE(app, QLatin1String("qttest")); // this is our KComponentData name
 	}
+#endif
 }
 
 void
Index: kdecore/CMakeLists.txt
===================================================================
--- kdecore/CMakeLists.txt	(Revision 690958)
+++ kdecore/CMakeLists.txt	(Arbeitskopie)
@@ -54,6 +54,7 @@
       network/klocalsocket_win.cpp
       util/kshell_win.cpp
       util/kmacroexpander_win.cpp
+      io/klockfile_win.cpp
       )
 endif (WIN32)
 
@@ -73,7 +74,9 @@
       io/kptyprocess.cpp
       util/kshell_unix.cpp
       util/kmacroexpander_unix.cpp
-      fakes.c )
+      fakes.c 
+      io/klockfile.cpp
+  )
 endif (UNIX)
 
 
@@ -127,7 +130,6 @@
    io/kautosavefile.cpp
    io/kdebug.cpp
    io/kdebugdbusiface.cpp
-   io/klockfile.cpp
    io/kmessage.cpp
    io/kprocess.cpp
    io/ksavefile.cpp
