use select() instead of poll() as it's portable

This commit is contained in:
Andrzej Rybczak
2009-10-25 03:25:26 +01:00
parent 3e99bba5b8
commit e112e0d975
2 changed files with 17 additions and 8 deletions

View File

@@ -21,7 +21,12 @@
#ifndef _MPDPP_H
#define _MPDPP_H
#include <poll.h>
#ifdef WIN32
# include <winsock.h>
#else
# include <sys/select.h>
#endif
#include <vector>
#include <mpd/client.h>
@@ -219,7 +224,8 @@ namespace MPD
int itsErrorCode;
size_t itsMaxPlaylistLength;
pollfd itsPoll;
fd_set itsPoll;
int itsFD;
bool isIdle;
bool supportsIdle;