Exclude CreatePidFile on Win32 platform
[novacoin.git] / src / util.cpp
index adb3fb4..e89367d 100644 (file)
@@ -1108,6 +1108,7 @@ boost::filesystem::path GetPidFile()
     return pathPidFile;
 }
 
+#ifndef WIN32
 void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
 {
     FILE* file = fopen(path.string().c_str(), "w");
@@ -1117,6 +1118,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid)
         fclose(file);
     }
 }
+#end
 
 bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest)
 {