# HG changeset patch # User Maxim Dounin # Date 1372247247 -14400 # Node ID 7f4ec5bfb715e6271179321286828c86210eb5ba # Parent 7ecaa9e4bf1bcf7ecd25f1d5f4c8a778de2db534 Fixed build on Linux with x32 ABI. On Linux x32 inclusion of sys/sysctl.h produces an error. As sysctl() is only used by rtsig event method code, which is legacy and not compiled in by default on modern linuxes, the sys/sysctl.h file now only included if rtsig support is enabled. Based on patch by Serguei I. Ivantsov. diff -r 7ecaa9e4bf1b -r 7f4ec5bfb715 src/os/unix/ngx_linux_config.h --- a/src/os/unix/ngx_linux_config.h Thu Jun 20 20:47:39 2013 +0400 +++ b/src/os/unix/ngx_linux_config.h Wed Jun 26 15:47:27 2013 +0400 @@ -51,7 +51,6 @@ #include /* memalign() */ #include /* IOV_MAX */ #include -#include #include #include /* uname() */ @@ -77,11 +76,17 @@ #endif -#if (NGX_HAVE_POLL || NGX_HAVE_RTSIG) +#if (NGX_HAVE_POLL) #include #endif +#if (NGX_HAVE_RTSIG) +#include +#include +#endif + + #if (NGX_HAVE_EPOLL) #include #endif