From: Ronnie Sahlberg Date: Fri, 12 Apr 2013 01:37:05 +0000 (-0700) Subject: AROS: getting closer to link. only a handful of missing symbols now X-Git-Tag: upstream/1.9.6^2~231 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=e77d093c377537f52f46830790a8c66a6cda5bed AROS: getting closer to link. only a handful of missing symbols now --- diff --git a/aros/aros_compat.c b/aros/aros_compat.c index 10f127b..7f46a46 100644 --- a/aros/aros_compat.c +++ b/aros/aros_compat.c @@ -23,6 +23,15 @@ #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) { diff --git a/aros/aros_compat.h b/aros/aros_compat.h index f9db059..9568299 100644 --- a/aros/aros_compat.h +++ b/aros/aros_compat.h @@ -3,6 +3,7 @@ #include #include +#include #define statvfs statfs diff --git a/lib/pdu.c b/lib/pdu.c index 6614260..6efd355 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -36,6 +36,10 @@ #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;