From ffd7439799531b99ecf4201991d4028efdd6dc5c Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Wed, 24 Jul 2013 09:30:09 +0200 Subject: [PATCH] exclude CreatePidFile() function on WIN32 as it is unused --- src/util.cpp | 2 ++ src/util.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index f1785be24..977d46b8c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1119,6 +1119,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"); @@ -1128,6 +1129,7 @@ void CreatePidFile(const boost::filesystem::path &path, pid_t pid) fclose(file); } } +#endif bool RenameOver(boost::filesystem::path src, boost::filesystem::path dest) { diff --git a/src/util.h b/src/util.h index b06dd4573..b271ab6ac 100644 --- a/src/util.h +++ b/src/util.h @@ -210,7 +210,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& mapSettingsRet, std::map >& mapMultiSettingsRet); #ifdef WIN32 boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate = true);