aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_errno.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-10 16:23:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-10 16:23:38 +0000
commitc7a2f6860669f45f5abe342163de5bc68e344816 (patch)
tree08755593cd5f7537d0b63cf2a6c8b835e1082792 /src/os/unix/ngx_errno.h
parente9b2cb1b9d286cffa8053e41c87b12ce265c4f25 (diff)
downloadnginx-c7a2f6860669f45f5abe342163de5bc68e344816.tar.gz
nginx-c7a2f6860669f45f5abe342163de5bc68e344816.zip
nginx-0.0.2-2004-02-10-19:23:38 import
Diffstat (limited to 'src/os/unix/ngx_errno.h')
-rw-r--r--src/os/unix/ngx_errno.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/unix/ngx_errno.h b/src/os/unix/ngx_errno.h
index 208faa244..7ead602f7 100644
--- 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);