diff options
| author | Gavin Andresen <[email protected]> | 2013-08-05 01:05:59 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-08-05 01:05:59 -0700 |
| commit | e622f3f195f417f3098b9717003f875954495f3c (patch) | |
| tree | 066936cd3ddd490f3118970ccedc2a08dbcd1ee4 /src/util.cpp | |
| parent | Merge pull request #2827 from Diapolo/rpccon_winpos (diff) | |
| parent | exclude CreatePidFile() function on WIN32 as it is unused (diff) | |
| download | discoin-e622f3f195f417f3098b9717003f875954495f3c.tar.xz discoin-e622f3f195f417f3098b9717003f875954495f3c.zip | |
Merge pull request #2855 from Diapolo/guard_CreatePidFile
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 c4212b398..049e55b7d 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) { |