comparison auto/unix @ 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 dbb0c854e308
children 716852cce913
comparison
equal deleted inserted replaced
7009:03444167a3bb 7010:c1524829af3d
296 296
297 if [ $ngx_found = yes ]; then 297 if [ $ngx_found = yes ]; then
298 CORE_LIBS="$CORE_LIBS -lrt" 298 CORE_LIBS="$CORE_LIBS -lrt"
299 fi 299 fi
300 fi 300 fi
301
302
303 ngx_feature="sched_setaffinity()"
304 ngx_feature_name="NGX_HAVE_SCHED_SETAFFINITY"
305 ngx_feature_run=no
306 ngx_feature_incs="#include <sched.h>"
307 ngx_feature_path=
308 ngx_feature_libs=
309 ngx_feature_test="cpu_set_t mask;
310 CPU_ZERO(&mask);
311 sched_setaffinity(0, sizeof(cpu_set_t), &mask)"
312 . auto/feature
301 313
302 314
303 ngx_feature="SO_SETFIB" 315 ngx_feature="SO_SETFIB"
304 ngx_feature_name="NGX_HAVE_SETFIB" 316 ngx_feature_name="NGX_HAVE_SETFIB"
305 ngx_feature_run=no 317 ngx_feature_run=no