diff options
Diffstat (limited to 'libc/bionic/fts.c')
-rw-r--r-- | libc/bionic/fts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/bionic/fts.c b/libc/bionic/fts.c index 128726768..77b411762 100644 --- a/libc/bionic/fts.c +++ b/libc/bionic/fts.c @@ -54,6 +54,11 @@ static FTSENT *fts_sort(FTS *, FTSENT *, int); static u_short fts_stat(FTS *, FTSENT *, int, int); static int fts_safe_changedir(FTS *, FTSENT *, int, const char *); +/* Android: OpenBSD source compatibility workarounds. */ +#include "private/bsd_sys_param.h" +#define DEF_WEAK(s) /* nothing */ +void* recallocarray(void*, size_t, size_t, size_t); + #define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) #define CLR(opt) (sp->fts_options &= ~(opt)) @@ -447,7 +452,7 @@ DEF_WEAK(fts_read); * reasons. */ int -fts_set(FTS *sp, FTSENT *p, int instr) +fts_set(FTS *sp __unused, FTSENT *p, int instr) { if (instr && instr != FTS_AGAIN && instr != FTS_FOLLOW && instr != FTS_NOINSTR && instr != FTS_SKIP) { |