AROS: getting closer to link. only a handful of missing symbols now
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 12 Apr 2013 01:37:05 +0000 (18:37 -0700)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 12 Apr 2013 01:37:05 +0000 (18:37 -0700)
aros/aros_compat.c
aros/aros_compat.h
lib/pdu.c

index 10f127b1233adc5a4d937770836905a257e245b9..7f46a469ed67185d8d1ad20a2a7aebe77fefb1aa 100644 (file)
 
 #undef poll
 
+/* unix device major/minor numbers dont make much sense on amiga */
+int major(int i)
+{
+  return 1;
+}
+int minor(int i)
+{
+  return 2;
+}
 
 int aros_poll(struct pollfd *fds, unsigned int nfds, int timo)
 {
index f9db0599bca6a2d6bcbff3fd000f8561b6ed9312..9568299ea6caf21e758a87a845281721fc4bdb34 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <netinet/in.h>
 #include <sys/mount.h>
+#include <proto/socket.h>
 
 #define statvfs statfs
 
index 66142607da2af4598b98ed7bffa8fd689456ff49..6efd3554b23517c0cf13c2ba0163f7dbc802f243 100644 (file)
--- a/lib/pdu.c
+++ b/lib/pdu.c
 #include "libnfs-raw.h"
 #include "libnfs-private.h"
 
+#ifdef AROS
+#include "aros_compat.h"
+#endif
+
 struct rpc_pdu *rpc_allocate_pdu(struct rpc_context *rpc, int program, int version, int procedure, rpc_cb cb, void *private_data, zdrproc_t zdr_decode_fn, int zdr_decode_bufsize)
 {
        struct rpc_pdu *pdu;