system/FileDescriptor: fix WIN32 checks

This commit is contained in:
Max Kellermann
2015-03-03 19:44:32 +01:00
parent 40a587bbaf
commit cd776ff1a8
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;