diff options
author | Dan McGee <dpmcgee@gmail.com> | 2012-02-16 23:30:13 -0600 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-02-21 10:20:47 +0200 |
commit | 016bc7513f0e758162d136476b8faa7e7832a60b (patch) | |
tree | 350fbff22a8a19fce2ff1e2f1d26ac75c64acf85 /server/red_channel.c | |
parent | bdfd6c234bca76232f4bac308fc21321ebba7f1a (diff) | |
download | spice-016bc7513f0e758162d136476b8faa7e7832a60b.tar.gz spice-016bc7513f0e758162d136476b8faa7e7832a60b.tar.xz spice-016bc7513f0e758162d136476b8faa7e7832a60b.zip |
Use standard IOV_MAX definition where applicable
This is provided by <limits.h> on all platforms as long as _XOPEN_SOURCE
is defined. On Linux, this is 1024, on Solaris, this is 16, and on any
other platform, we now respect the value supported by the OS.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 5b8027cb..2cd98daa 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -329,7 +329,7 @@ static void red_channel_client_peer_prepare_out_msg( RedChannelClient *rcc = (RedChannelClient *)opaque; *vec_size = spice_marshaller_fill_iovec(rcc->send_data.marshaller, - vec, MAX_SEND_VEC, pos); + vec, IOV_MAX, pos); } static void red_channel_client_peer_on_out_block(void *opaque) |