X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwin32poll.h;fp=source%2Fwin32poll.h;h=f39d53e199e4263eb973d9403a16b57e291ae74d;hb=a883560b42163f5ed0c83204469d17dd4f0134b6;hp=0000000000000000000000000000000000000000;hpb=baf2ee40d68be74e6848a5f282ed369d5a616007;p=libs%2Fcore.git diff --git a/source/win32poll.h b/source/win32poll.h new file mode 100644 index 0000000..f39d53e --- /dev/null +++ b/source/win32poll.h @@ -0,0 +1,29 @@ +/* +This file is part of libmspframework +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ +#ifndef MSP_FRAMEWORK_WIN32POLL_H_ +#define MSP_FRAMEWORK_WIN32POLL_H_ + +#ifdef WIN32 +// From Linux sys/poll.h +struct pollfd +{ + int fd; /* File descriptor to poll. */ + short int events; /* Types of events poller cares about. */ + short int revents; /* Types of events that actually occurred. */ +}; + +#ifndef POLLIN +// From Linux pth.h +#define POLLIN 0x0001 /* any readable data available */ +#endif + +#ifndef POLLNVAL +// From Linux pth.h +#define POLLNVAL 0x0020 /* requested events "invalid" */ +#endif + +#endif // Win32 +#endif