[vlc-devel] [PATCH 09/13] vlc_fixups: fix struct if_nameindex definition
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Oct 2 11:14:32 CEST 2018
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
More information about the vlc-devel
mailing list