AROS: We need emulation of readv/writev on aros
This commit is contained in:
@@ -167,3 +167,12 @@ int aros_poll(struct pollfd *fds, unsigned int nfds, int timo)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssize_t aros_readv(int fd, const struct iovec *iov, int iovcnt)
|
||||||
|
{
|
||||||
|
return read(fd, iov[0].iov_base, iov[0].iov_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
ssize_t aros_writev(int fd, const struct iovec *iov, int iovcnt)
|
||||||
|
{
|
||||||
|
return write(fd, iov[0].iov_base, iov[0].iov_len);
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
#define ioctl IoctlSocket
|
#define ioctl IoctlSocket
|
||||||
#define close CloseSocket
|
#define close CloseSocket
|
||||||
|
|
||||||
|
#define writev aros_writev
|
||||||
|
#define readv aros_readv
|
||||||
#define inet_pton aros_inet_pton
|
#define inet_pton aros_inet_pton
|
||||||
#define freeaddrinfo aros_freeaddrinfo
|
#define freeaddrinfo aros_freeaddrinfo
|
||||||
#define getnameinfo aros_getnameinfo
|
#define getnameinfo aros_getnameinfo
|
||||||
|
|||||||
@@ -26,6 +26,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef AROS
|
||||||
|
#include "aros/aros_compat.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user