diff options
-rw-r--r-- | include/compat/glob.h | 4 | ||||
-rw-r--r-- | lib/compat/glob.c | 10 |
2 files changed, 12 insertions, 2 deletions
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 <sys/cdefs.h> __BEGIN_DECLS diff --git a/lib/compat/glob.c b/lib/compat/glob.c index e48b030..28fd48e 100644 --- a/lib/compat/glob.c +++ b/lib/compat/glob.c @@ -23,6 +23,12 @@ #define __glibc_unlikely(x) x #define __libc_use_alloca(x) 0 #define alloca_account(size, avar) alloca(size) +#ifndef __THROWNL +#define __THROWNL +#endif +#ifndef __attribute_noinline__ +#define __attribute_noinline__ +#endif #include <glob.h> @@ -604,7 +610,7 @@ glob (const char *pattern, int flags, int (*errfunc) (const char *, int), } } -#ifndef VMS +#if !defined(VMS) && !defined(ANDROID) if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~') { if (dirname[1] == '\0' || dirname[1] == '/' @@ -973,7 +979,7 @@ glob (const char *pattern, int flags, int (*errfunc) (const char *, int), } # endif /* Not Amiga && not WINDOWS32. */ } -#endif /* Not VMS. */ +#endif /* Not VMS && not ANDROID. */ /* Now test whether we looked for "~" or "~NAME". In this case we can give the answer now. */ |