aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2017-12-18 21:09:39 +0300
committerRoman Arutyunyan <arut@nginx.com>2017-12-18 21:09:39 +0300
commit0e92c213f51bae95605c19dfee843902e7c8a0ad (patch)
tree229a9a69caa876b5f7517df2cf0a4882efdddce0 /src/os/unix/ngx_linux_config.h
parent752f66bf7d70fae2bf05fbf5941ff4be52b2b9a5 (diff)
downloadnginx-0e92c213f51bae95605c19dfee843902e7c8a0ad.tar.gz
nginx-0e92c213f51bae95605c19dfee843902e7c8a0ad.zip
Improved the capabilities feature detection.
Previously included file sys/capability.h mentioned in capset(2) man page, belongs to the libcap-dev package, which may not be installed on some Linux systems when compiling nginx. This prevented the capabilities feature from being detected and compiled on that systems. Now linux/capability.h system header is included instead. Since capset() declaration is located in sys/capability.h, now capset() syscall is defined explicitly in code using the SYS_capset constant, similarly to other Linux-specific features in nginx.
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index b22ea4378..3036caebf 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -100,7 +100,7 @@ typedef struct iocb ngx_aiocb_t;
#if (NGX_HAVE_CAPABILITIES)
-#include <sys/capability.h>
+#include <linux/capability.h>
#endif