more header include cleanups
[deb_libnfs.git] / aros / aros_compat.h
index 9568299ea6caf21e758a87a845281721fc4bdb34..e882967a6ee2e2ad14ab4ef867aab44e2d56a268 100644 (file)
@@ -1,11 +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>
 
 #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