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