aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_errno.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-07-03 20:16:55 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-07-03 20:16:55 +0000
commit497c13774d14204023b745a3deaa13a5fbcd2bf2 (patch)
tree5dcf45f26ec4b31eb628d003c97dfcf30e26063a /src/os/unix/ngx_errno.h
parent0cb0c67e3a833fe7e90e9e271e6a49ab180c9ec2 (diff)
downloadnginx-497c13774d14204023b745a3deaa13a5fbcd2bf2.tar.gz
nginx-497c13774d14204023b745a3deaa13a5fbcd2bf2.zip
HP/UX uses EWOULDBLOCK instead of EAGAIN
Diffstat (limited to 'src/os/unix/ngx_errno.h')
-rw-r--r--src/os/unix/ngx_errno.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_errno.h b/src/os/unix/ngx_errno.h
index ddc2b2761..e1891e74b 100644
--- a/src/os/unix/ngx_errno.h
+++ b/src/os/unix/ngx_errno.h
@@ -30,7 +30,6 @@ typedef int ngx_err_t;
#define NGX_EINVAL EINVAL
#define NGX_ENOSPC ENOSPC
#define NGX_EPIPE EPIPE
-#define NGX_EAGAIN EAGAIN
#define NGX_EINPROGRESS EINPROGRESS
#define NGX_EADDRINUSE EADDRINUSE
#define NGX_ECONNABORTED ECONNABORTED
@@ -48,6 +47,11 @@ typedef int ngx_err_t;
#define NGX_EILSEQ EILSEQ
#define NGX_ENOMOREFILES 0
+#if (__hpux__)
+#define NGX_EAGAIN EWOULDBLOCK
+#else
+#define NGX_EAGAIN EAGAIN
+#endif
#define ngx_errno errno