From 35a4212180272b5dd648b99c07a692aab19a5e67 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 26 Jun 2018 17:39:38 +0300 Subject: lib: glob: Fix compilation on Android The glibc glob() implementation doesn't compile on Android due to missing support for getlogin_r (before Android ABI 28) and to missing __THROW, __THROWNL and __attribute_noinline__ macros. getlogin_r is only used to implement support for the '~' path component which we don't use in the uvc-gadget library, so we can compile it out. The three macros can safely be defined as no-op. Signed-off-by: Laurent Pinchart --- include/compat/glob.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/compat') diff --git a/include/compat/glob.h b/include/compat/glob.h index b5bd9ac..b05550b 100644 --- a/include/compat/glob.h +++ b/include/compat/glob.h @@ -18,6 +18,10 @@ #ifndef _GLOB_H #define _GLOB_H 1 +#ifndef __THROW +#define __THROW +#endif + #include __BEGIN_DECLS -- cgit v1.2.3