From a034c7ebb6995c342fea289d04a6198d793eab08 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Wed, 24 Jul 2013 09:30:09 +0200 Subject: exclude CreatePidFile() function on WIN32 as it is unused --- src/util.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index bfb6d7583..00e1174a4 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) { -- cgit v1.2.3