[Xcb] Number of iovecs for xcb_send_request()

Uli Schlachter psychon at znc.in
Sun Aug 12 12:42:26 PDT 2012


On 12.08.2012 19:37, Peter Harris wrote:
> On Sun, Aug 12, 2012 at 9:17 AM, Uli Schlachter wrote:
[...]
>> If this
>> problem should be handled in xcb, then... I'm not really sure how this should
>> be handled.
> 
> Something like the attached (untested) patch to libxcb ought to help.

Thanks, that patch does indeed get rid of the problem here. However, my limits.h
doesn't define IOV_MAX unless _XOPEN_SOURCE is defined.

IOV_MAX gets defined in /usr/include/x86_64-linux-gnu/bits/stdio_lim.h which is
included by /usr/include/x86_64-linux-gnu/bits/xopen_lim.h which is only
included by limits.h if __USE_XOPEN is defined.

Fixing this is straight forward, but it makes me wonder how portable IOV_MAX is.

Cheers,
Uli
-- 
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451


More information about the Xcb mailing list