mirror of
https://github.com/nginx/nginx.git
synced 2026-10-09 10:16:54 +00:00
fix building on FreeBSD prior to 4.8, it has no GLOB_NOMATCH
This commit is contained in:
parent
c5849a6381
commit
843ad94e81
1 changed files with 5 additions and 1 deletions
|
|
@ -265,10 +265,14 @@ ngx_open_glob(ngx_glob_t *gl)
|
|||
return NGX_OK;
|
||||
}
|
||||
|
||||
#ifdef GLOB_NOMATCH
|
||||
|
||||
if (n == GLOB_NOMATCH && gl->test) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
|
|
@ -276,7 +280,7 @@ ngx_open_glob(ngx_glob_t *gl)
|
|||
ngx_int_t
|
||||
ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name)
|
||||
{
|
||||
if (gl->n < (size_t) gl->pglob.gl_pathc) {
|
||||
if (gl->n < (size_t) gl->pglob.gl_matchc) {
|
||||
|
||||
name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]);
|
||||
name->data = (u_char *) gl->pglob.gl_pathv[gl->n];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue