comparison src/os/unix/ngx_errno.c @ 457:ded1284520cc release-0.1.3

nginx-0.1.3-RELEASE import *) Feature: the ngx_http_autoindex_module and the autoindex directive. *) Feature: the proxy_set_x_url directive. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 25 Oct 2004 15:29:23 +0000
parents 23fb87bddda1
children a88a3e4e158f
comparison
equal deleted inserted replaced
456:911c05435a02 457:ded1284520cc
6 6
7 #include <ngx_config.h> 7 #include <ngx_config.h>
8 #include <ngx_core.h> 8 #include <ngx_core.h>
9 9
10 10
11 #if (HAVE_STRERROR_R) 11 #if (NGX_STRERROR_R)
12 12
13 ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size) 13 ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size)
14 { 14 {
15 size_t len; 15 size_t len;
16 16
29 } 29 }
30 30
31 return len; 31 return len;
32 } 32 }
33 33
34 #elif (HAVE_GNU_STRERROR_R) 34 #elif (NGX_GNU_STRERROR_R)
35 35
36 /* Linux strerror_r() */ 36 /* Linux strerror_r() */
37 37
38 ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size) 38 ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size)
39 { 39 {