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:
parent
f7ba8ba5c3
commit
c0965e0eec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user