]> git.kaiwu.me - nginx.git/commitdiff
Configure: sched_setaffinity() test moved to auto/unix.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 May 2017 13:48:30 +0000 (16:48 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 29 May 2017 13:48:30 +0000 (16:48 +0300)
The sched_setaffinity() function was introduced in DragonFly BSD 4.7,
so it is no longer Linux-specific.

Prodded by Sepherosa Ziehau.

auto/os/linux
auto/unix

index fae8842c645476edf438bda95562b22f1a81056e..a0c8795bbba80e49c57ef105f0ea1f3b650e2a25 100644 (file)
@@ -157,20 +157,6 @@ ngx_feature_test="if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) return 1"
 . auto/feature
 
 
-# sched_setaffinity()
-
-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
-
-
 # crypt_r()
 
 ngx_feature="crypt_r()"
index 52060fc04804b93f76a435cf77a8ff20f8347ff7..7c6a8550d436e8457301b1718839880c89b26d54 100644 (file)
--- a/auto/unix
+++ b/auto/unix
@@ -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