Skip to content

Commit 589c3b9

Browse files
committed
support iovec for lwp_syscall
1 parent 0aab40a commit 589c3b9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

components/libc/compilers/mlibc/alltypes.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,10 @@ typedef uint64_t fsfilcnt_t;
3131
#define __LONG_MAX INT32_MAX
3232
#endif /* __GNUC__ */
3333

34+
struct iovec
35+
{
36+
void *iov_base; /* Base address. */
37+
size_t iov_len; /* Length. */
38+
};
39+
3440
#endif

components/lwp/lwp_syscall.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include <mm_aspace.h>
4141
#include <lwp_user_mm.h>
4242
#include <lwp_arch.h>
43-
#include <bsd_porting.h>
4443
#endif
4544

4645
#include <fcntl.h>

0 commit comments

Comments
 (0)