Mercurial > hg > nginx
comparison auto/os/linux @ 7010:c1524829af3d
Configure: sched_setaffinity() test moved to auto/unix.
The sched_setaffinity() function was introduced in DragonFly BSD 4.7,
so it is no longer Linux-specific.
Prodded by Sepherosa Ziehau.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 29 May 2017 16:48:30 +0300 |
parents | 6acaa638fa07 |
children | 84e53e4735a4 |
comparison
equal
deleted
inserted
replaced
7009:03444167a3bb | 7010:c1524829af3d |
---|---|
155 ngx_feature_libs= | 155 ngx_feature_libs= |
156 ngx_feature_test="if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) return 1" | 156 ngx_feature_test="if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) return 1" |
157 . auto/feature | 157 . auto/feature |
158 | 158 |
159 | 159 |
160 # sched_setaffinity() | |
161 | |
162 ngx_feature="sched_setaffinity()" | |
163 ngx_feature_name="NGX_HAVE_SCHED_SETAFFINITY" | |
164 ngx_feature_run=no | |
165 ngx_feature_incs="#include <sched.h>" | |
166 ngx_feature_path= | |
167 ngx_feature_libs= | |
168 ngx_feature_test="cpu_set_t mask; | |
169 CPU_ZERO(&mask); | |
170 sched_setaffinity(0, sizeof(cpu_set_t), &mask)" | |
171 . auto/feature | |
172 | |
173 | |
174 # crypt_r() | 160 # crypt_r() |
175 | 161 |
176 ngx_feature="crypt_r()" | 162 ngx_feature="crypt_r()" |
177 ngx_feature_name="NGX_HAVE_GNU_CRYPT_R" | 163 ngx_feature_name="NGX_HAVE_GNU_CRYPT_R" |
178 ngx_feature_run=no | 164 ngx_feature_run=no |