aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-07-24 09:30:09 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-11-26 14:00:48 +0100
commitf607729b26813f549284c8e90a8606565e972d12 (patch)
tree0aeb0f7d42658c054ac2c337ede0ab4b1f9a63be
parente88eb41b6c94d72331ebbce5729d91d5788d14da (diff)
downloadbitcoin-f607729b26813f549284c8e90a8606565e972d12.tar.xz
exclude CreatePidFile() function on WIN32 as it is unused
-rw-r--r--src/util.cpp2
-rw-r--r--src/util.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 481fc763cc..ea10273f85 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -1118,6 +1118,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");
@@ -1127,6 +1128,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 33832261e1..8c6c4bd205 100644
--- a/src/util.h
+++ b/src/util.h
@@ -211,7 +211,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);