Mercurial > hg > nginx
comparison src/os/unix/ngx_linux_config.h @ 7175:56923e8e01a5
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 18 Dec 2017 21:09:39 +0300 |
parents | 84e53e4735a4 |
children | c0a432c0301b |
comparison
equal
deleted
inserted
replaced
7174:84e53e4735a4 | 7175:56923e8e01a5 |
---|---|
98 typedef struct iocb ngx_aiocb_t; | 98 typedef struct iocb ngx_aiocb_t; |
99 #endif | 99 #endif |
100 | 100 |
101 | 101 |
102 #if (NGX_HAVE_CAPABILITIES) | 102 #if (NGX_HAVE_CAPABILITIES) |
103 #include <sys/capability.h> | 103 #include <linux/capability.h> |
104 #endif | 104 #endif |
105 | 105 |
106 | 106 |
107 #define NGX_LISTEN_BACKLOG 511 | 107 #define NGX_LISTEN_BACKLOG 511 |
108 | 108 |