docs: add a prebuilt manpage to the distribution
[deb_libnfs.git] / aros / aros_compat.h
index d5b2d73274ee0a85f045a1acd8d6eb4675838a40..76de2ac948f724daefc71df716b7a905d754b407 100644 (file)
@@ -1,15 +1,26 @@
 #ifndef AROS_COMPAT_H
 #define AROS_COMPAT_H
 
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
 #include <netinet/in.h>
 #include <sys/mount.h>
 #include <proto/socket.h>
 #include <proto/exec.h>
+#include <netdb.h>
+#include <net/if.h>
+#include <netinet/in.h>
 
 #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 +39,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 */