diff options
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r-- | src/core/ngx_config.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index 3df08568c..8287d5680 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -87,6 +87,7 @@ #include <signal.h> #include <string.h> #include <sys/types.h> +#include <sys/mman.h> #include <sys/wait.h> #include <sys/time.h> #include <sys/socket.h> @@ -167,10 +168,11 @@ /* FreeBSD sendfile nbytes bug */ #if (__FreeBSD__ == 4 && __FreeBSD_version >= 460100) \ - || __FreeBSD_version == 460001 + || __FreeBSD_version == 460001 \ || __FreeBSD_version >= 500029 #if (HAVE_FREEBSD_SENDFILE_NBYTES_BUG == 2) +#undef HAVE_FREEBSD_SENDFILE_NBYTES_BUG #define HAVE_FREEBSD_SENDFILE_NBYTES_BUG 0 #endif |