1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

It seems that IRIX doesn't have IOV_MAX

This commit is contained in:
Andrew Tridgell 2009-06-09 14:54:15 +10:00
parent f7ba8ba5c3
commit c0965e0eec

View File

@ -539,10 +539,12 @@ struct tevent_req *tstream_readv_send(TALLOC_CTX *mem_ctx,
state->ret = -1;
/* first check if the input is ok */
#ifdef IOV_MAX
if (count > IOV_MAX) {
tevent_req_error(req, EMSGSIZE);
goto post;
}
#endif
for (i=0; i < count; i++) {
int tmp = to_read;
@ -658,10 +660,12 @@ struct tevent_req *tstream_writev_send(TALLOC_CTX *mem_ctx,
state->ret = -1;
/* first check if the input is ok */
#ifdef IOV_MAX
if (count > IOV_MAX) {
tevent_req_error(req, EMSGSIZE);
goto post;
}
#endif
for (i=0; i < count; i++) {
int tmp = to_write;