diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2017-05-29 16:48:30 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2017-05-29 16:48:30 +0300 |
| commit | 529ce100586015c75363846c372f484a3ca555fa (patch) | |
| tree | 7005de288f22e1c488b3d71940b5b7d4d0cc78b8 /auto/unix | |
| parent | 0514e14a8bbd8e5977712c892b53aa471a91fcb5 (diff) | |
| download | nginx-529ce100586015c75363846c372f484a3ca555fa.tar.gz nginx-529ce100586015c75363846c372f484a3ca555fa.tar.bz2 | |
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.
Diffstat (limited to '')
| -rw-r--r-- | auto/unix | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -300,6 +300,18 @@ if [ $ngx_found = no ]; then fi +ngx_feature="sched_setaffinity()" +ngx_feature_name="NGX_HAVE_SCHED_SETAFFINITY" +ngx_feature_run=no +ngx_feature_incs="#include <sched.h>" +ngx_feature_path= +ngx_feature_libs= +ngx_feature_test="cpu_set_t mask; + CPU_ZERO(&mask); + sched_setaffinity(0, sizeof(cpu_set_t), &mask)" +. auto/feature + + ngx_feature="SO_SETFIB" ngx_feature_name="NGX_HAVE_SETFIB" ngx_feature_run=no |
