diff options
author | Max Kellermann <max@duempel.org> | 2013-08-07 20:31:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-07 20:31:27 +0200 |
commit | 3ac2e9d31fa58e19e6d5d000f6ac3403ea5d4cea (patch) | |
tree | 5d4f3fed187d640f826fa6f6dd1902b994f5100a /src | |
parent | b76a29a69ae5412c3c1d101eefa9562990e74407 (diff) | |
download | mpd-3ac2e9d31fa58e19e6d5d000f6ac3403ea5d4cea.tar.gz mpd-3ac2e9d31fa58e19e6d5d000f6ac3403ea5d4cea.tar.xz mpd-3ac2e9d31fa58e19e6d5d000f6ac3403ea5d4cea.zip |
os/FileSystem: disable mkfifo() wrapper on WIN32
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/FileSystem.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/FileSystem.hxx b/src/fs/FileSystem.hxx index aab5f3bfb..d247f1a75 100644 --- a/src/fs/FileSystem.hxx +++ b/src/fs/FileSystem.hxx @@ -116,12 +116,16 @@ static inline bool RemoveFile(const Path &file) */ Path ReadLink(const Path &path); +#ifndef WIN32 + static inline bool MakeFifo(const Path &path, mode_t mode) { return mkfifo(path.c_str(), mode) == 0; } +#endif + /** * Wrapper for access() that uses #Path names. */ |