[vlc-devel] [PATCH 09/13] vlc_fixups: fix struct if_nameindex definition
Rémi Denis-Courmont
remi at remlab.net
Tue Oct 2 12:00:17 CEST 2018
Ugly hack,no thanks.
Le 2 octobre 2018 12:14:32 GMT+03:00, Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> a écrit :
>Fixes android NDK 17 build
>---
> include/vlc_fixups.h | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
>index 037f67da31..5dda6ba35c 100644
>--- a/include/vlc_fixups.h
>+++ b/include/vlc_fixups.h
>@@ -413,11 +413,13 @@ int poll (struct pollfd *, unsigned, int);
>
> #ifndef HAVE_IF_NAMEINDEX
> #include <errno.h>
>+# ifndef __ANDROID__
> struct if_nameindex
> {
> unsigned if_index;
> char *if_name;
> };
>+# endif
> # define if_nameindex() (errno = ENOBUFS, NULL)
> # define if_freenameindex(list) (void)0
> #endif
>--
>2.19.0
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20181002/ad923dc3/attachment.html>
More information about the vlc-devel
mailing list