diff options
author | Max Kellermann <max@duempel.org> | 2015-03-03 19:44:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-03 19:44:32 +0100 |
commit | cd776ff1a8ae0b0c2ef0068c0ee81332cddac134 (patch) | |
tree | bfd2bfdd11d3c50960073a18e67ccbfb3180c254 /src/system/FileDescriptor.cxx | |
parent | 40a587bbaff38bb0b60313c24b94e2ecd53b181c (diff) | |
download | mpd-cd776ff1a8ae0b0c2ef0068c0ee81332cddac134.tar.gz mpd-cd776ff1a8ae0b0c2ef0068c0ee81332cddac134.tar.xz mpd-cd776ff1a8ae0b0c2ef0068c0ee81332cddac134.zip |
system/FileDescriptor: fix WIN32 checks
Diffstat (limited to '')
-rw-r--r-- | src/system/FileDescriptor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx index 946493329..65206e5f0 100644 --- a/src/system/FileDescriptor.cxx +++ b/src/system/FileDescriptor.cxx @@ -33,7 +33,7 @@ #include <sys/stat.h> #include <fcntl.h> -#ifdef HAVE_POSIX +#ifndef WIN32 #include <poll.h> #endif @@ -72,7 +72,7 @@ FileDescriptor::OpenReadOnly(const char *pathname) return Open(pathname, O_RDONLY | O_NOCTTY | O_CLOEXEC); } -#ifdef HAVE_POSIX +#ifndef WIN32 bool FileDescriptor::OpenNonBlocking(const char *pathname) @@ -188,7 +188,7 @@ FileDescriptor::GetSize() const : -1; } -#ifdef HAVE_POSIX +#ifndef WIN32 int FileDescriptor::Poll(short events, int timeout) const |