X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=aros%2Faros_compat.h;h=76de2ac948f724daefc71df716b7a905d754b407;hb=f694a287ae3de83e32f07771bd6257779494ecaa;hp=9568299ea6caf21e758a87a845281721fc4bdb34;hpb=e77d093c377537f52f46830790a8c66a6cda5bed;p=deb_libnfs.git diff --git a/aros/aros_compat.h b/aros/aros_compat.h index 9568299..76de2ac 100644 --- a/aros/aros_compat.h +++ b/aros/aros_compat.h @@ -1,11 +1,29 @@ #ifndef AROS_COMPAT_H #define AROS_COMPAT_H +#include +#include +#include #include #include #include +#include +#include +#include +#include #define statvfs statfs +#define ioctl IoctlSocket +#define close CloseSocket + +#define inet_pton aros_inet_pton +#define freeaddrinfo aros_freeaddrinfo +#define getnameinfo aros_getnameinfo +#define getaddrinfo aros_getaddrinfo + +extern struct Library * SocketBase; + +void aros_init_socket(void); #define f_flag f_flags #define f_favail f_ffree @@ -21,6 +39,11 @@ #define POLLHUP 0x0010 /* Hung up */ #define POLLNVAL 0x0020 /* Invalid request: fd not open */ +struct utimbuf { + int actime; + int modtime; +}; + struct pollfd { int fd; /* file descriptor */ short events; /* requested events */