previous fix was backwards and propagated the wrong type rather than
the right one...
#define LIO_WAIT 0
#define LIO_NOWAIT 1
-ssize_t aio_read(struct aiocb *);
-ssize_t aio_write(struct aiocb *);
+int aio_read(struct aiocb *);
+int aio_write(struct aiocb *);
int aio_error(const struct aiocb *);
ssize_t aio_return(struct aiocb *);
int aio_cancel(int, struct aiocb *);
return ret;
}
-ssize_t aio_read(struct aiocb *cb)
+int aio_read(struct aiocb *cb)
{
cb->aio_lio_opcode = LIO_READ;
return new_req(cb);
}
-ssize_t aio_write(struct aiocb *cb)
+int aio_write(struct aiocb *cb)
{
cb->aio_lio_opcode = LIO_WRITE;
return new_req(cb);