Exclude CreatePidFile on Win32 platform
authoralex <alex@alex-VirtualBox.(none)>
Tue, 27 Aug 2013 20:41:51 +0000 (00:41 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Tue, 27 Aug 2013 20:41:51 +0000 (00:41 +0400)
src/util.cpp
src/util.h

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)
 {
index df1a3b1..8168216 100644 (file)
@@ -215,7 +215,9 @@ boost::filesystem::path GetDefaultDataDir();
 const boost::filesystem::path &GetDataDir(bool fNetSpecific = true);
 boost::filesystem::path GetConfigFile();
 boost::filesystem::path GetPidFile();
+#ifndef WIN32
 void CreatePidFile(const boost::filesystem::path &path, pid_t pid);
+#endif
 void ReadConfigFile(std::map<std::string, std::string>& mapSettingsRet, std::map<std::string, std::vector<std::string> >& mapMultiSettingsRet);
 #ifdef WIN32
 boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true);