From 3ac2e9d31fa58e19e6d5d000f6ac3403ea5d4cea Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 20:31:27 +0200 Subject: os/FileSystem: disable mkfifo() wrapper on WIN32 --- src/fs/FileSystem.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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. */ -- cgit v1.2.3