diff --git a/src/bind_config.c b/src/bind_config.c index a4c7a8d7..51cf9917 100644 --- a/src/bind_config.c +++ b/src/bind_config.c @@ -242,9 +242,14 @@ static void local_parse_glob(ssh_bind bind, uint8_t *seen, unsigned int depth) { +#ifdef __FILC__ + /* FilC's libc provides glob_t without the non-standard gl_flags member. */ + glob_t globbuf = {0}; +#else glob_t globbuf = { .gl_flags = 0, }; +#endif int rt; u_int i; diff --git a/src/config.c b/src/config.c index 156b146e..9c0caee1 100644 --- a/src/config.c +++ b/src/config.c @@ -243,9 +243,14 @@ static void local_parse_glob(ssh_session session, unsigned int depth, bool global) { +#ifdef __FILC__ + /* FilC's libc provides glob_t without the non-standard gl_flags member. */ + glob_t globbuf = {0}; +#else glob_t globbuf = { .gl_flags = 0, }; +#endif int rt; size_t i;