X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=aros%2Faros_compat.h;h=2089bc89a13dd1bdd4ff11aa6113fd9c5940c8fe;hb=HEAD;hp=d5b2d73274ee0a85f045a1acd8d6eb4675838a40;hpb=2cdf4fcb07a2d4ec0fbeb66096afd9e8f9cd03a1;p=deb_libnfs.git diff --git a/aros/aros_compat.h b/aros/aros_compat.h index d5b2d73..2089bc8 100644 --- a/aros/aros_compat.h +++ b/aros/aros_compat.h @@ -1,15 +1,43 @@ +/* + Copyright (C) 2013 by Ronnie Sahlberg + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as published by + the Free Software Foundation; either version 2.1 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program; if not, see . +*/ + #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); @@ -28,6 +56,11 @@ void aros_init_socket(void); #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 */