diff options
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 11 |
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 |