| 1 | #ifndef AROS_COMPAT_H |
| 2 | #define AROS_COMPAT_H |
| 3 | |
| 4 | #include <netinet/in.h> |
| 5 | #include <sys/mount.h> |
| 6 | #include <proto/socket.h> |
| 7 | |
| 8 | #define statvfs statfs |
| 9 | |
| 10 | #define f_flag f_flags |
| 11 | #define f_favail f_ffree |
| 12 | /* we dont have these at all */ |
| 13 | #define f_fsid f_spare[0] |
| 14 | #define f_frsize f_spare[0] |
| 15 | #define f_namemax f_spare[0] |
| 16 | |
| 17 | #define POLLIN 0x0001 /* There is data to read */ |
| 18 | #define POLLPRI 0x0002 /* There is urgent data to read */ |
| 19 | #define POLLOUT 0x0004 /* Writing now will not block */ |
| 20 | #define POLLERR 0x0008 /* Error condition */ |
| 21 | #define POLLHUP 0x0010 /* Hung up */ |
| 22 | #define POLLNVAL 0x0020 /* Invalid request: fd not open */ |
| 23 | |
| 24 | struct pollfd { |
| 25 | int fd; /* file descriptor */ |
| 26 | short events; /* requested events */ |
| 27 | short revents; /* returned events */ |
| 28 | }; |
| 29 | |
| 30 | #define poll(x, y, z) aros_poll(x, y, z) |
| 31 | |
| 32 | #endif |