[vlc-devel] [PATCH v2 08/18] newlib/nacl: Include sys/uio for iovec

Dennis Hamester dhamester at jusst.de
Wed Mar 15 11:26:51 CET 2017

On 13.03.2017 20:17, Rémi Denis-Courmont wrote:
> Le maanantaina 13. maaliskuuta 2017, 12.36.54 EET Dennis Hamester a écrit :
>> From: Julian Scheel <julian at jusst.de>
>> The iovec struct is defined in a dedicated header for newlib.
> Which header? <sys/uio.h> is the standard header for iovec AFAIK.

Yes, that is the correct header, but very few users of iovec in VLC
actually include it. My guess is, that sys/uio.h is implicitly included
by some other header on glibc. That is not the case on nacl/newlib and a
lot of stuff breaks.

IOV_MAX is also defined here, because for some reason it is not defined
in limits.h and _SC_IOV_MAX doesn't exist either, so you can't query it
at runtime.

Dennis Hamester
Software Development
jusst technologies GmbH

tel: +49 (0)40 1800 86 75
fax: +49 (0)40 1800 86 76
mail: dhamester at jusst.de

Ohlstedter Straße 12
22397 Hamburg


Vertretungsberechtigte Geschäftsführer: Julian Scheel, Wolfgang Scheel
Registergericht: Amtsgericht Hamburg
Registernummer: HRB 94300
USt-ID-Nr.: DE 243309917

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170315/4ded6a38/attachment.sig>

More information about the vlc-devel mailing list