[vlc-devel] commit "gnutls: use vectorized sends on all platforms" breaks Android

Rémi Denis-Courmont remi at remlab.net
Mon Jan 18 16:18:02 CET 2016

Le 2016-01-18 16:50, Jean-Baptiste Kempf a écrit :
> It seems that one needs to call sysconf(_SC_IOV_MAX) if IOV_MAX is 
> not
> defined in limits.h (XSI extension).


| A definition of [IOV_MAX] shall be omitted from <limits.h> on 
| implementations where the corresponding value is equal to or greater 
| the stated minimum, but is unspecified.
| This indetermination might depend on the amount of available memory 
space on
| a specific instance of a specific implementation. The actual value 
| by a specific instance shall be provided by the sysconf() function.

> Not sure if Android is wrong there.

Both Android and VLC are broken: Android because the value is *not* 
unspecified and VLC because it assumes IOV_MAX is specified.

Rémi Denis-Courmont

More information about the vlc-devel mailing list