aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-09 07:46:43 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-02-09 07:46:43 +0000
commit7af6b16936b630feabecbce0dbc9cf84b4943481 (patch)
tree18301d35a84907e66fe94ddc7600d4ec6d600409 /src/os/unix/ngx_linux_config.h
parent9260294400c902904cdf791c9c2e8fd069feec63 (diff)
downloadnginx-7af6b16936b630feabecbce0dbc9cf84b4943481.tar.gz
nginx-7af6b16936b630feabecbce0dbc9cf84b4943481.zip
nginx-0.0.2-2004-02-09-10:46:43 import
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index f6b84569f..fca68f622 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -34,8 +34,17 @@
#include <netdb.h>
#include <dirent.h>
+
+/* Linux has a broken strerror_r() */
+#define HAVE_STRERROR_R 0
+
#include <ngx_auto_config.h>
+
+#if (HAVE_PRCTL)
+#include <sys/prctl.h>
+#endif
+
#if (HAVE_SENDFILE64)
#include <sys/sendfile.h>
#else
@@ -67,7 +76,7 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
#ifndef HAVE_INHERITED_NONBLOCK
-#define HAVE_INHERITED_NONBLOCK 1
+#define HAVE_INHERITED_NONBLOCK 0
#endif