Mercurial > hg > nginx
diff src/os/unix/ngx_errno.h @ 256:8e39cab6abd5
nginx-0.0.2-2004-02-10-19:23:38 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 10 Feb 2004 16:23:38 +0000 |
parents | e885208c518b |
children | f81d075ad172 |
line wrap: on
line diff
--- a/src/os/unix/ngx_errno.h +++ b/src/os/unix/ngx_errno.h @@ -2,8 +2,8 @@ #define _NGX_ERRNO_H_INCLUDED_ -#include <errno.h> -#include <string.h> +#include <ngx_config.h> +#include <ngx_core.h> typedef int ngx_err_t; @@ -34,7 +34,7 @@ typedef int ngx_err_t; #define ngx_set_socket_errno(err) errno = err -#if (HAVE_STRERROR_R) +#if (HAVE_STRERROR_R || HAVE_GNU_STRERROR_R) ngx_int_t ngx_strerror_r(int err, char *errstr, size_t size);