diff options
| author | Philip Kaufmann <[email protected]> | 2013-07-24 09:30:09 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-07-24 09:30:09 +0200 |
| commit | a034c7ebb6995c342fea289d04a6198d793eab08 (patch) | |
| tree | 9d40fa6ba2aa202d64f68e0f9397b75b3269841b /src/util.cpp | |
| parent | Merge pull request #2795 from fanquake/log_aborted_rebuilds (diff) | |
| download | discoin-a034c7ebb6995c342fea289d04a6198d793eab08.tar.xz discoin-a034c7ebb6995c342fea289d04a6198d793eab08.zip | |
exclude CreatePidFile() function on WIN32 as it is unused
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |