[vlc-devel] [PATCH] include/vlc_fixups.h: Prevent redefinition of iovec structure.

Alexandre Janniaux ajanni at videolabs.io
Fri Sep 4 07:57:17 CEST 2020


Hi,

On Fri, Sep 04, 2020 at 07:32:33AM +0200, Steve Lhomme wrote:
> Hi,
>
> You should check the structure exists in configure.ac, like it's done for
> pollfd. Then you'll have a HAVE_STRUCT_IOVEC you can use.

This won't solve the issue raised by the PO here, since the
definition of struct iovec is from a library and not the
system headers.

However, it doesn't seem correct to use the same define as
one of the library to workaround this issue. The correct
fix might be to prevent this structure from being declared
from the vncserver library headers first.

Regards,
--
Alexandre Janniaux
Videolabs


More information about the vlc-devel mailing list