fix build on Linux and Solaris introduced in r2200
Igor Sysoev
13 years ago
279 | 279 | ngx_int_t |
280 | 280 | ngx_read_glob(ngx_glob_t *gl, ngx_str_t *name) |
281 | 281 | { |
282 | if (gl->n < (size_t) gl->pglob.gl_matchc) { | |
282 | size_t count; | |
283 | ||
284 | #ifdef GLOB_NOMATCH | |
285 | count = (size_t) gl->pglob.gl_pathc; | |
286 | #else | |
287 | count = (size_t) gl->pglob.gl_matchc; | |
288 | #endif | |
289 | ||
290 | if (gl->n < count) { | |
283 | 291 | |
284 | 292 | name->len = (size_t) ngx_strlen(gl->pglob.gl_pathv[gl->n]); |
285 | 293 | name->data = (u_char *) gl->pglob.gl_pathv[gl->n]; |