]> git.tdb.fi Git - libs/core.git/blob - source/core/win32poll.h
Semaphore is now win32-compatible, I hope
[libs/core.git] / source / core / win32poll.h
1 /*
2 This file is part of libmspframework
3 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
4 Distributed under the LGPL
5 */
6 #ifndef MSP_FRAMEWORK_WIN32POLL_H_
7 #define MSP_FRAMEWORK_WIN32POLL_H_
8
9 #ifdef WIN32
10 // From Linux sys/poll.h
11 struct pollfd
12 {
13         int fd;                 /* File descriptor to poll.  */
14         short int events;       /* Types of events poller cares about.  */
15         short int revents;      /* Types of events that actually occurred.  */
16 };
17
18 #ifndef POLLIN
19 // From Linux pth.h
20 #define POLLIN          0x0001  /* any readable data available   */
21 #endif
22
23 #ifndef POLLNVAL
24 // From Linux pth.h
25 #define POLLNVAL        0x0020  /* requested events "invalid"    */
26 #endif
27
28 #endif  // Win32
29 #endif