It seems that IRIX doesn't have IOV_MAX
authorAndrew Tridgell <tridge@samba.org>
Tue, 9 Jun 2009 04:54:15 +0000 (14:54 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 9 Jun 2009 04:54:15 +0000 (14:54 +1000)
lib/tsocket/tsocket.c

index e618fb79b8318f520fb4d73a79959777393f01a0..e05c8d53f5be4a58d20d754e50b064315ddbefc9 100644 (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 */
        state->ret = -1;
 
        /* first check if the input is ok */
+#ifdef IOV_MAX
        if (count > IOV_MAX) {
                tevent_req_error(req, EMSGSIZE);
                goto post;
        }
        if (count > IOV_MAX) {
                tevent_req_error(req, EMSGSIZE);
                goto post;
        }
+#endif
 
        for (i=0; i < count; i++) {
                int tmp = to_read;
 
        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 */
        state->ret = -1;
 
        /* first check if the input is ok */
+#ifdef IOV_MAX
        if (count > IOV_MAX) {
                tevent_req_error(req, EMSGSIZE);
                goto post;
        }
        if (count > IOV_MAX) {
                tevent_req_error(req, EMSGSIZE);
                goto post;
        }
+#endif
 
        for (i=0; i < count; i++) {
                int tmp = to_write;
 
        for (i=0; i < count; i++) {
                int tmp = to_write;