From cd776ff1a8ae0b0c2ef0068c0ee81332cddac134 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Mar 2015 19:44:32 +0100 Subject: system/FileDescriptor: fix WIN32 checks --- src/system/FileDescriptor.cxx | 6 +++--- src/system/FileDescriptor.hxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 #include -#ifdef HAVE_POSIX +#ifndef WIN32 #include #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 diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx index 8db0dffdd..37657332b 100644 --- a/src/system/FileDescriptor.hxx +++ b/src/system/FileDescriptor.hxx @@ -93,7 +93,7 @@ public: bool Open(const char *pathname, int flags); bool OpenReadOnly(const char *pathname); -#ifdef HAVE_POSIX +#ifndef WIN32 bool OpenNonBlocking(const char *pathname); static bool CreatePipe(FileDescriptor &r, FileDescriptor &w); @@ -160,7 +160,7 @@ public: return ::write(fd, buffer, length); } -#ifdef HAVE_POSIX +#ifndef WIN32 int Poll(short events, int timeout) const; int WaitReadable(int timeout) const; -- cgit v1.2.3