libev on AIX
Aivars Kalvans
aivars.kalvans at gmail.com
Mon Jan 18 16:22:48 CET 2010
Hi!
libev fails to compile on AIX because of weird poll.h (#define events
reqevents). Attached patch solves it but maybe you can write a better one.
poll.h:
...
#ifdef __64BIT__
/* pollfd.fd is always a 32 bit entity (XOPEN) */
struct pollfd
{
int fd; /* file descriptor or file ptr */
short events; /* requested events */
short revents; /* returned events */
};
#else /* __64BIT__ */
struct pollfd
{
long fd; /* file descriptor or file ptr */
ushort reqevents; /* requested events */
ushort rtnevents; /* returned events */
};
#define events reqevents /* SVR3,4 pollfd member name */
#define revents rtnevents /* SVR3,4 pollfd member name */
#endif /* __64BIT__ */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20100118/05c32623/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ev_poll-aix.patch
Type: application/octet-stream
Size: 435 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20100118/05c32623/attachment.obj>
More information about the libev
mailing list